Menu

## EntityInterface extends JsonSerializable
in

EntityInterface.php : 12

Entity interface.

##### Tags

author

  Lucas S. Vieira

### Table of Contents

#### Methods

delete() : bool
  Removes a entity on server, if possible.
isNew() : bool
  Returns true if is a new object.
save() : bool
  Save a entity on server, if possible.
toArray() : array<string|int, mixed>
  Returns a array representation of entity.

### Methods

#### delete()

EntityInterface.php : 33

Removes a entity on server, if possible.

`public delete() : bool`

##### Return values

bool —

True if operation was successful, false otherwise.

#### isNew()

EntityInterface.php : 19

Returns true if is a new object.

`public isNew() : bool`

##### Return values

bool

#### save()

EntityInterface.php : 26

Save a entity on server, if possible.

`public save() : bool`

##### Return values

bool —

True if operation was successful, false otherwise.

#### toArray()

EntityInterface.php : 40

Returns a array representation of entity.

`public toArray() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

## Search results