/** * Formatting account information as array * * @return array */ public function getAccountInformation() { $account = array( 'id' => $this->_account->getId(), 'nickname' => $this->_account->getNickname(), 'firstname' => $this->_account->getFirstname(), 'lastname' => $this->_account->getLastname(), 'created_at' => $this->_account->getCreated_at() ->format('d.m.Y H:M:s'), 'image' => $this->getProfileImage() ); return $account; }