| 1 | <?php  | 
            ||
| 13 | class RemoveFinishedTicketTaskFactory  | 
            ||
| 14 | { | 
            ||
| 15 | /** @var int */  | 
            ||
| 16 | public const PRIORITY = 30;  | 
            ||
| 17 | |||
| 18 | /**  | 
            ||
| 19 | * If application has 'Done' status, returns RemoveFinishedTicketTask.  | 
            ||
| 20 | * Otherwise throws MisguidedTaskException.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @throws MisguidedTaskException  | 
            ||
| 23 | */  | 
            ||
| 24 | 3 | public function create(  | 
            |
| 35 | |||
| 36 | /**  | 
            ||
| 37 | * Returns true if application has directory and its status is Done.  | 
            ||
| 38 | */  | 
            ||
| 39 | 3 | private function existsAndIsDone(Ticket $ticket) : bool  | 
            |
| 43 | }  | 
            ||
| 44 |