password)) ? $user : null; } public static function getProps() { return array( 'email', 'password', 'name', 'verificationToken', 'ownTickets' ); } public function getDefaultProps() { return array( 'ownTickets' => [] ); } public function addTicket($ticket) { $this->ownTickets[] = $ticket; } public static function getUser($value, $property = 'id') { return parent::getDataStore($value, $property); } }