/** * Assistant constructor. */ public function __construct() { if (Assistant::$idCounter === null) { $this->id = 1; Assistant::$idCounter = 1; } else { $this->id = ++Assistant::$idCounter; } $this->group = null; $this->preferredGroup = null; $this->doublePosition = false; $this->availability = array(); }