_username = $username; $this->_uuid = $uuid; $this->_properties = $properties; } /** * @return string The player's username. */ public function getUsername(): string { return $this->_username; } /** * @return string The player's UUID. */ public function getUUID(): string { return $this->_uuid; } /** * @return array The player's properties listed on their mojang profile. */ public function getProperties(): array { return $this->_properties; } /** * @return array Returns an array with keys of 'properties, usernname and uuid'. */ public function getProfileAsArray(): array { return [ 'username' => $this->_username, 'uuid' => $this->_uuid, 'properties' => $this->_properties, ]; } }