ClientStateEnum.php 430 B

12345678910111213141516171819202122
  1. <?php
  2. namespace FTTHBundle\Utils;
  3. class ClientStateEnum
  4. {
  5. const CURRENT_STATE_SUSPEND = 'suspend';
  6. const CURRENT_STATE_CANCELLED = 'cancelled';
  7. const CURRENT_STATE_DELETED = 'deleted';
  8. /**
  9. * @param $state string
  10. * @return bool
  11. */
  12. public function containsStatesDisabled($state)
  13. {
  14. return $state === self::CURRENT_STATE_CANCELLED || $state === self::CURRENT_STATE_DELETED;
  15. }
  16. }