PHP Класс DirkGroenen\Pinterest\Models\Model

Наследование: implements JsonSerializable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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