public function toArray(): array
    {
        return [
            'id'                => $this->id,
            'text'              => $this->text,
            'lang'              => $this->lang,
            'created_at'        => $this->createdAt,
            'geo'               => $this->geo,
            'coordinates'       => $this->coordinates,
            'places'            => $this->places,
            'retweet_count'     => $this->retweetCount,
            'favorite_count'    => $this->favoriteCount,
            'entities'          => $this->entities,
            'extended_entities' => $this->extendedEntities,
            'user'              => $this->user
        ];
    }
public function toArray(): array
    {
        return [
            'id'                => $this->id,
            'text'              => $this->text,
            'lang'              => $this->lang,
            'created_at'        => $this->createdAt,
            'geo'               => $this->geo,
            'coordinates'       => $this->coordinates,
            'places'            => $this->places,
            'retweet_count'     => $this->retweetCount,
            'favorite_count'    => $this->favoriteCount,
            'entities'          => $this->entities,
            'extended_entities' => $this->extendedEntities,
            'user'              => $this->user
        ];
    }
public function toArray ( ) : array { return [ 'id' => $ this -> id , 'text' => $ this -> text , 'lang' => $ this -> lang , 'created_at' => $ this -> createdAt , 'geo' => $ this -> geo , 'coordinates' => $ this -> coordinates , 'places' => $ this -> places , 'retweet_count' => $ this -> retweetCount , 'favorite_count' => $ this -> favoriteCount , 'entities' => $ this -> entities , 'extended_entities' => $ this -> extendedEntities , 'user' => $ this -> user ] ; }
Return Tweet object to Array

@return array
Return Tweet object to Array