| 1 | <?php |
||
| 13 | class DeleteArchivist implements ArchivistInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var EntityRepository |
||
| 17 | */ |
||
| 18 | private $tokenRepository; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param EntityRepository $tokenRepository The token entity repository |
||
| 22 | */ |
||
| 23 | public function __construct(EntityRepository $tokenRepository) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @inheritDoc |
||
| 30 | */ |
||
| 31 | public function archive($purpose = null, DateTime $before = null) |
||
| 58 | } |
||
| 59 |
If you suppress an error, we recommend checking for the error condition explicitly: