public function toArray() { $returnValue = parent::toArray(); $returnValue['_isValid'] = $this->_isValid; $returnValue['_user'] = $this->_user; $returnValue['addDate'] = is_null($this->addDate) ? null : $this->addDate->toString('YYYY.MM.dd HH:mm:ss'); $returnValue['setDate'] = is_null($this->setDate) ? null : $this->setDate->toString('YYYY.MM.dd HH:mm:ss'); return (array) $returnValue; }