PHP 클래스 Asvae\ApiTester\Entities\BaseEntity

상속: implements Illuminate\Contracts\Support\Arrayable, implements Illuminate\Contracts\Support\Jsonable, implements ArrayAcces\ArrayAccess, implements JsonSerializabl\JsonSerializable
파일 보기 프로젝트 열기: asvae/laravel-api-tester

보호된 프로퍼티들

프로퍼티 타입 설명
$attributes Entity attributes.
$fillable Names of attributes that can be filled.

공개 메소드들

메소드 설명
__construct ( array $data = [] ) BaseEntity constructor.
fill ( array $data ) : void Fill attributes that can be filled.
jsonSerialize ( ) : mixed Specify data which should be serialized to JSON
offsetExists ( mixed $offset ) : boolean Whether a offset exists.
offsetGet ( mixed $offset ) : mixed Offset to retrieve.
offsetSet ( mixed $offset, mixed $value ) : void Offset to set.
offsetUnset ( mixed $offset ) : void Offset to unset.
toArray ( ) : array Get the instance as an array.
toJson ( integer $options ) : string Convert the object to its JSON representation.

보호된 메소드들

메소드 설명
filterFillable ( array $data ) : array Return array with with key that can be filled.

메소드 상세

__construct() 공개 메소드

BaseEntity constructor.
public __construct ( array $data = [] )
$data array

fill() 공개 메소드

Fill attributes that can be filled.
public fill ( array $data ) : void
$data array
리턴 void

filterFillable() 보호된 메소드

Return array with with key that can be filled.
protected filterFillable ( array $data ) : array
$data array
리턴 array

jsonSerialize() 공개 메소드

Specify data which should be serialized to JSON
public jsonSerialize ( ) : mixed
리턴 mixed data which can be serialized by json_encode, which is a value of any type other than a resource.

offsetExists() 공개 메소드

Whether a offset exists.
public offsetExists ( mixed $offset ) : boolean
$offset mixed An offset to check for.
리턴 boolean true on success or false on failure.

offsetGet() 공개 메소드

Offset to retrieve.
public offsetGet ( mixed $offset ) : mixed
$offset mixed The offset to retrieve.
리턴 mixed Can return all value types.

offsetSet() 공개 메소드

Offset to set.
public offsetSet ( mixed $offset, mixed $value ) : void
$offset mixed The offset to assign the value to.
$value mixed The value to set.
리턴 void

offsetUnset() 공개 메소드

Offset to unset.
public offsetUnset ( mixed $offset ) : void
$offset mixed The offset to unset.
리턴 void

toArray() 공개 메소드

Get the instance as an array.
public toArray ( ) : array
리턴 array return array representation of object.

toJson() 공개 메소드

Convert the object to its JSON representation.
public toJson ( integer $options ) : string
$options integer
리턴 string

프로퍼티 상세

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

Entity attributes.
protected $attributes

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

Names of attributes that can be filled.
protected $fillable