PHP 클래스 Art4\JsonApiClient\Document

또한 보기: http://jsonapi.org/format/#document-top-level
상속: implements DocumentInterface, use trait Art4\JsonApiClient\Utils\AccessTrait
파일 보기 프로젝트 열기: art4/json-api-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$container DataContainerInterface
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface

공개 메소드들

메소드 설명
__construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent = null ) : Document
get ( string $key ) : mixed Get a value by the key of this document
parse ( object $object ) : Document

보호된 메소드들

메소드 설명
parseData ( null | object $data ) : Art4\JsonApiClient\ElementInterface Parse the data value

메소드 상세

__construct() 공개 메소드

public __construct ( Art4\JsonApiClient\Utils\FactoryManagerInterface $manager, Art4\JsonApiClient\AccessInterface $parent = null ) : Document
$manager Art4\JsonApiClient\Utils\FactoryManagerInterface
$parent Art4\JsonApiClient\AccessInterface
리턴 Document

get() 공개 메소드

Get a value by the key of this document
public get ( string $key ) : mixed
$key string The key of the value
리턴 mixed The value

parse() 공개 메소드

public parse ( object $object ) : Document
$object object The document body
리턴 Document

parseData() 보호된 메소드

Parse the data value
protected parseData ( null | object $data ) : Art4\JsonApiClient\ElementInterface
$data null | object Data value
리턴 Art4\JsonApiClient\ElementInterface The parsed data

프로퍼티 상세

$container 보호되어 있는 프로퍼티

protected DataContainerInterface $container
리턴 DataContainerInterface

$manager 보호되어 있는 프로퍼티

protected FactoryManagerInterface,Art4\JsonApiClient\Utils $manager
리턴 Art4\JsonApiClient\Utils\FactoryManagerInterface