You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
526B

  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 ($setting->getText()) {
  11. return $setting->getText();
  12. } elseif ($setting->getDate()) {
  13. return $setting->getDate();
  14. } elseif ($setting->getFile()) {
  15. return $setting->getFile();
  16. }
  17. }
  18. }