hasInContainer('name') || !$this->getFromContainer('name')) { if ($this->get('accountName')) { return $this->get('accountName'); } if ($this->get('emailAddress')) { return $this->get('emailAddress'); } if ($this->get('phoneNumber')) { return $this->get('phoneNumber'); } } return $this->getFromContainer('name'); } /** * @return bool */ protected function _hasName() { if ($this->hasInContainer('name')) { return true; } if ($this->has('accountName')) { return true; } if ($this->has('emailAddress')) { return true; } if ($this->has('phoneNumber')) { return true; } return false; } }