TranslateAttribute.php 395 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace ePHPic\View\Attributes;
  3. use ePHPic\View\EnumAttribute;
  4. class TranslateAttribute extends EnumAttribute
  5. {
  6. protected function getValidValues(): array
  7. {
  8. return [
  9. "yes", "no"
  10. ];
  11. }
  12. protected function name(): string
  13. {
  14. return "translate";
  15. }
  16. public function __toString(): string
  17. {
  18. return $this->value;
  19. }
  20. }