Building
extends Model
in package
Table of Contents
- $address : Address|null
- $addressId : int
- $closeTime : JsonDateTime
- $created : JsonDateTime
- $id : int
- $image : Image
- $imageId : int
- $name : string
- $openTime : JsonDateTime
- $updated : JsonDateTime
- __construct() : mixed
- __set() : mixed
- jsonSerialize() : array<string|int, mixed>
- Specify data which should be serialized to JSON
- update() : void
- Updates model properties with form data
- validate() : void
- Domain object save validation callback.
Properties
$address
public
Address|null
$address
$addressId
public
int
$addressId
$closeTime
public
JsonDateTime
$closeTime
$created
public
JsonDateTime
$created
$id
public
int
$id
$image
public
Image
$image
$imageId
public
int
$imageId
$name
public
string
$name
$openTime
public
JsonDateTime
$openTime
$updated
public
JsonDateTime
$updated
Methods
__construct()
public
__construct(int $id, string $name, Image $image, Address|null $address, JsonDateTime $openTime, JsonDateTime $closeTime, JsonDateTime $created, JsonDateTime $updated, int $imageId, int $addressId) : mixed
Parameters
- $id : int
- $name : string
- $image : Image
- $address : Address|null
- $openTime : JsonDateTime
- $closeTime : JsonDateTime
- $created : JsonDateTime
- $updated : JsonDateTime
- $imageId : int
- $addressId : int
Return values
mixed —__set()
public
__set(string $name, mixed $value) : mixed
Parameters
- $name : string
- $value : mixed
Tags
Return values
mixed —jsonSerialize()
Specify data which should be serialized to JSON
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —update()
Updates model properties with form data
public
update(stdClass $form) : void
Parameters
- $form : stdClass
Return values
void —validate()
Domain object save validation callback.
public
validate() : void
Any rules checks on each update, can be implemented here.