PHP 트레잇 Art4\JsonApiClient\Utils\AccessTrait

파일 보기 프로젝트 열기: art4/json-api-client

공개 메소드들

메소드 설명
asArray ( boolean $fullArray = false ) : array Convert this object in an array
getKeys ( ) : array Returns the keys of all setted values in this object
has ( string $key ) : boolean Check if a value exists in this object

메소드 상세

asArray() 공개 메소드

Convert this object in an array
public asArray ( boolean $fullArray = false ) : array
$fullArray boolean If true, objects are transformed into arrays recursively
리턴 array

getKeys() 공개 메소드

Returns the keys of all setted values in this object
public getKeys ( ) : array
리턴 array Keys of all setted values

has() 공개 메소드

Check if a value exists in this object
public has ( string $key ) : boolean
$key string The key of the value
리턴 boolean true if data exists, false if not