| 1 | <?php |
||
| 11 | class DeleteArchivist implements ArchivistInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var EntityRepository |
||
| 15 | */ |
||
| 16 | private $tokenRepository; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var EntityRepository |
||
| 20 | */ |
||
| 21 | private $tokenUsageRepository; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param EntityRepository $tokenRepository |
||
| 25 | * @param EntityRepository $tokenUsageRepository |
||
| 26 | */ |
||
| 27 | public function __construct(EntityRepository $tokenRepository, EntityRepository $tokenUsageRepository) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritDoc |
||
| 35 | */ |
||
| 36 | public function archive($purpose = null, DateTime $before = null) |
||
| 62 | } |
||
| 63 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: