/** * Gets the username of the account. * * @return string */ public function username() { if ($this->has_user()) { return $this->_user->screen_name; } return parent::_username(); }
/** * Gets the username of the account. * * @return string */ public function username() { if ($this->has_user()) { if (!isset($this->_user->username)) { $this->_user->username = $this->_user->name . '.' . $this->_user->id; } return $this->_user->username; } return parent::_username(); }