Property | Type | Description | |
---|---|---|---|
$attributes | Entity attributes. | ||
$fillable | Names of attributes that can be filled. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
filterFillable ( array $data ) : array | Return array with with key that can be filled. |
public __construct ( array $data = [] ) | ||
$data | array |
protected filterFillable ( array $data ) : array | ||
$data | array | |
return | array |
public jsonSerialize ( ) : mixed | ||
return | 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. |
return | boolean | true on success or false on failure. |
public offsetUnset ( mixed $offset ) : void | ||
$offset | mixed | The offset to unset. |
return | void |