getValues(); $ref_enums['Type'] = ProfileTypeValues::getInstance()->getValues(); return $ref_enums; } public function getPicture(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( 'breaking_change' => 'breaking_change_enum', 'height' => 'int', 'redirect' => 'bool', 'type' => 'type_enum', 'width' => 'int', ); $enums = array( 'breaking_change_enum' => ProfilePictureSourceBreakingChangeValues::getInstance()->getValues(), 'type_enum' => ProfilePictureSourceTypeValues::getInstance()->getValues(), ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/picture', new ProfilePictureSource(), 'EDGE', ProfilePictureSource::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } public function getSelf(array $fields = array(), array $params = array(), $pending = false) { $this->assureId(); $param_types = array( ); $enums = array( ); $request = new ApiRequest( $this->api, $this->data['id'], RequestInterface::METHOD_GET, '/', new Profile(), 'NODE', Profile::getFieldsEnum()->getValues(), new TypeChecker($param_types, $enums) ); $request->addParams($params); $request->addFields($fields); return $pending ? $request : $request->execute(); } }