OEModule\PatientTicketing\models\Ticket::is_complete PHP Method

is_complete() public method

Checks if the ticket is complete or not.
public is_complete ( ) : boolean
return boolean
    public function is_complete()
    {
        return count($this->current_queue->outcomes) == 0;
    }

Usage Example

 /**
  * @param models\Ticket $ticket
  *
  * @return array|mixed|null|string
  */
 public function getTicketActionLabel(models\Ticket $ticket)
 {
     if (!$ticket->is_complete()) {
         if ($label = $ticket->current_queue->action_label) {
             return $label;
         } else {
             return 'Move';
         }
     }
 }