/** * Returns error counter value * * @return int */ public function getErrorsCount() { return $this->_customerEntity->getErrorsCount() + $this->_addressEntity->getErrorsCount() + parent::getErrorsCount(); }