22 linhas
508B

  1. <?php
  2. namespace Lc\SovBundle\Solver\Setting;
  3. use Lc\SovBundle\Model\Setting\SettingInterface;
  4. use Lc\SovBundle\Model\Ticket\TicketInterface;
  5. use Lc\SovBundle\Model\Ticket\TicketModel;
  6. class SettingSolver
  7. {
  8. public function getValue(SettingInterface $setting)
  9. {
  10. if ($this->getText()) {
  11. return $this->getText();
  12. } elseif ($this->getDate()) {
  13. return $this->getDate();
  14. } elseif ($this->getFile()) {
  15. return $this->getFile();
  16. }
  17. }
  18. }