- <?php
-
- namespace Lc\SovBundle\Solver\Setting;
-
- use Lc\SovBundle\Model\Setting\SettingInterface;
- use Lc\SovBundle\Model\Ticket\TicketInterface;
- use Lc\SovBundle\Model\Ticket\TicketModel;
-
- class SettingSolver
- {
- public function getValue(SettingInterface $setting)
- {
- if ($this->getText()) {
- return $this->getText();
- } elseif ($this->getDate()) {
- return $this->getDate();
- } elseif ($this->getFile()) {
- return $this->getFile();
- }
- }
- }
|