PHP 클래스 DirkGroenen\Pinterest\Models\Model

상속: implements JsonSerializable
파일 보기 프로젝트 열기: dirkgroenen/pinterest-api-php

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes array The model's attributes
$fillable array The available object keys
$master DirkGroenen\Pinterest\Pinterest Instance of the master Pinterest class

공개 메소드들

메소드 설명
__construct ( Pinterest $master, mixed $modeldata = null ) Create a new model instance
__get ( string $key ) : mixed Get the model's attribute
__isset ( $key ) : boolean Check if the model's attribute is set
__set ( string $key, mixed $value ) : void Set the model's attribute
__toString ( ) : string Convert the model to its string representation
isFillable ( string $key ) : boolean Check if the key is fillable
jsonSerialize ( ) : array Convert the object into something JSON serializable.
toArray ( ) : array Convert the model instance to an array
toJson ( ) : string Convert the model instance to JSON

비공개 메소드들

메소드 설명
fill ( array $attributes ) : void Fill the attributes

메소드 상세

__construct() 공개 메소드

Create a new model instance
public __construct ( Pinterest $master, mixed $modeldata = null )
$master DirkGroenen\Pinterest\Pinterest
$modeldata mixed

__get() 공개 메소드

Get the model's attribute
public __get ( string $key ) : mixed
$key string
리턴 mixed

__isset() 공개 메소드

Check if the model's attribute is set
public __isset ( $key ) : boolean
$key
리턴 boolean

__set() 공개 메소드

Set the model's attribute
public __set ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

__toString() 공개 메소드

Convert the model to its string representation
public __toString ( ) : string
리턴 string

isFillable() 공개 메소드

Check if the key is fillable
public isFillable ( string $key ) : boolean
$key string
리턴 boolean

jsonSerialize() 공개 메소드

Convert the object into something JSON serializable.
public jsonSerialize ( ) : array
리턴 array

toArray() 공개 메소드

Convert the model instance to an array
public toArray ( ) : array
리턴 array

toJson() 공개 메소드

Convert the model instance to JSON
public toJson ( ) : string
리턴 string

프로퍼티 상세

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

The model's attributes
protected array $attributes
리턴 array

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

The available object keys
protected array $fillable
리턴 array

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

Instance of the master Pinterest class
protected Pinterest,DirkGroenen\Pinterest $master
리턴 DirkGroenen\Pinterest\Pinterest