| 1 | <?php |
||
| 7 | class DeleteAbandonedJobMessageService |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var AbandonedJobMessageStore |
||
| 11 | */ |
||
| 12 | private $abandonedJobMessageStore; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * DeleteAbandonedJobMessageService constructor. |
||
| 16 | * @param AbandonedJobMessageStore $abandonedJobMessageStore |
||
| 17 | */ |
||
| 18 | public function __construct(AbandonedJobMessageStore $abandonedJobMessageStore) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $id |
||
| 25 | * @throws \Shippinno\Job\Domain\Model\AbandonedJobMessageNotFoundException |
||
| 26 | */ |
||
| 27 | public function execute(string $id): void |
||
| 32 | } |
||
| 33 |
Unless you are absolutely sure that the expression can never be null because of other conditions, we strongly recommend to add an additional type check to your code: