- <?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 ($setting->getText()) {
- return $setting->getText();
- } elseif ($setting->getDate()) {
- return $setting->getDate();
- } elseif ($setting->getFile()) {
- return $setting->getFile();
- }
- }
- }
|