public function add($photo_id)
    {
        $photo_and_collection = json_decode(
            self::post(
                "/collections/{$this->id}/add",
                ['query' => ['photo_id' => $photo_id]]
            )->getBody(),
            true
        );

        # Reset
        $this->photos = [];
    }
public function add($photo_id)
    {
        $photo_and_collection = json_decode(
            self::post(
                "/collections/{$this->id}/add",
                ['query' => ['photo_id' => $photo_id]]
            )->getBody(),
            true
        );

        # Reset
        $this->photos = [];
    }
public function add ( $ photo_id ) { $ photo_and_collection = json_decode ( self :: post ( "/collections/{$this->id}/add" , [ 'query' => [ 'photo_id' => $ photo_id ] ] ) -> getBody ( ) , true ) ; # Reset $ this -> photos = [ ] ; }
Add a photo in user's collection
@param int $photo_id photo id from photo to add
@return array [photo, collection]
Add a photo in user s collection