Documentation

Permission
in package
implements CreateableInterface Uses Creator, Deletor

Represents a permission.

Tags
Entity
Table

(name="permissions")

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
Id

@Column(type="string");

$library

private mixed $library
Tags
Column

(type="string")

$name

private mixed $name
Tags
Column

(type="string")

Methods

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
throws
ArgumentException
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
Return values
mixed

Search results