프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
protected filterFillable ( array $data ) : array | ||
$data | array | |
리턴 | array |
public jsonSerialize ( ) : mixed | ||
리턴 | mixed | data which can be serialized by json_encode, which is a value of any type other than a resource. |
public offsetExists ( mixed $offset ) : boolean | ||
$offset | mixed | An offset to check for. |
리턴 | boolean | true on success or false on failure. |
public offsetUnset ( mixed $offset ) : void | ||
$offset | mixed | The offset to unset. |
리턴 | void |