public function load($id, array $parameters = [], array $headers = [])
    {
        if (!isset($parameters['append_to_response'])) {
            // Load a no-nonsense default set
            $parameters = array_merge($parameters, [
                new AppendToResponse([
                    AppendToResponse::IMAGES,
                    AppendToResponse::CHANGES,
                    AppendToResponse::COMBINED_CREDITS,
                    AppendToResponse::MOVIE_CREDITS,
                    AppendToResponse::TV_CREDITS,
                    AppendToResponse::EXTERNAL_IDS,
                    AppendToResponse::TAGGED_IMAGES
                ])
            ]);
        }

        $data = $this->getApi()->getPerson($id, $this->parseQueryParameters($parameters), $headers);

        return $this->getFactory()->create($data);
    }
public function load($id, array $parameters = [], array $headers = [])
    {
        if (!isset($parameters['append_to_response'])) {
            // Load a no-nonsense default set
            $parameters = array_merge($parameters, [
                new AppendToResponse([
                    AppendToResponse::IMAGES,
                    AppendToResponse::CHANGES,
                    AppendToResponse::COMBINED_CREDITS,
                    AppendToResponse::MOVIE_CREDITS,
                    AppendToResponse::TV_CREDITS,
                    AppendToResponse::EXTERNAL_IDS,
                    AppendToResponse::TAGGED_IMAGES
                ])
            ]);
        }

        $data = $this->getApi()->getPerson($id, $this->parseQueryParameters($parameters), $headers);

        return $this->getFactory()->create($data);
    }
public function load ( $ id , array $ parameters = [ ] , array $ headers = [ ] ) { if ( ! isset ( $ parameters [ 'append_to_response' ] ) ) { // Load a no-nonsense default set $ parameters = array_merge ( $ parameters , [ new AppendToResponse ( [ AppendToResponse :: IMAGES , AppendToResponse :: CHANGES , AppendToResponse :: COMBINED_CREDITS , AppendToResponse :: MOVIE_CREDITS , AppendToResponse :: TV_CREDITS , AppendToResponse :: EXTERNAL_IDS , AppendToResponse :: TAGGED_IMAGES ] ) ] ) ; } $ data = $ this -> getApi ( ) -> getPerson ( $ id , $ this -> parseQueryParameters ( $ parameters ) , $ headers ) ; return $ this -> getFactory ( ) -> create ( $ data ) ; }
Load a person with the given identifier

@param $id
@param  array  $parameters
@param  array  $headers
@return Person
Load a person with the given identifier