Permission
in package
implements
CreateableInterface
Uses
Creator, Deletor
Represents a permission.
Tags
Interfaces, Classes and Traits
- CreateableInterface
- Interface for createable models.
Table of Contents
- $fillable : mixed
- $id : mixed
- $library : mixed
- $name : mixed
- create() : CreateableInterface
- Creates and returns an entity instance and fills values.
- delete() : mixed
- Deletes the entity.
- getId() : string
- Returns the id of this entity.
- getLibrary() : string
- Returns the library this permission belongs to.
- getName() : string
- Gets this entity's human readable name.
- setId() : mixed
- Sets this entity's id if it's not set yet.
- setLibrary() : mixed
- Sets the library this permission belongs to.
- setName() : mixed
- Sets this entity's human readable name.
Properties
$fillable
public
static mixed
$fillable
= ["id", "library", "name"]
$id
private
mixed
$id
Tags
$library
private
mixed
$library
Tags
$name
private
mixed
$name
Tags
Methods
create()
Creates and returns an entity instance and fills values.
public
static create(array<string|int, mixed> $arguments) : CreateableInterface
Parameters
- $arguments : array<string|int, mixed>
-
The values the instance should get
Tags
Return values
CreateableInterface —The created Entity
delete()
Deletes the entity.
public
delete(EntityManagerInterface $em) : mixed
Parameters
- $em : EntityManagerInterface
Return values
mixed —getId()
Returns the id of this entity.
public
getId() : string
Return values
string —getLibrary()
Returns the library this permission belongs to.
public
getLibrary() : string
Return values
string —getName()
Gets this entity's human readable name.
public
getName() : string
Return values
string —setId()
Sets this entity's id if it's not set yet.
public
setId(string $id) : mixed
Parameters
- $id : string
Tags
Return values
mixed —setLibrary()
Sets the library this permission belongs to.
public
setLibrary(string $library) : mixed
Parameters
- $library : string
Return values
mixed —setName()
Sets this entity's human readable name.
public
setName(string $name) : mixed
Parameters
- $name : string