| 1 | <?php |
||
| 11 | class DeleteArchivist implements ArchivistInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var EntityRepository |
||
| 15 | */ |
||
| 16 | private $tokenRepository; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param EntityRepository $tokenRepository |
||
| 20 | */ |
||
| 21 | public function __construct(EntityRepository $tokenRepository) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritDoc |
||
| 28 | */ |
||
| 29 | public function archive($purpose = null, DateTime $before = null) |
||
| 56 | } |
||
| 57 |
If you suppress an error, we recommend checking for the error condition explicitly: