BusinessType
-
#[Entity]
-
$repositoryClass: \App\Repository\BusinessTypeRepository::class
Table of Contents
Properties
-
$description
: string|null
-
$id
: int|null
-
$name
: string|null
-
$users
: Collection<int, User>
Methods
-
__construct()
: mixed
-
addUser()
: static
-
getDescription()
: string|null
-
getId()
: int|null
-
getName()
: string|null
-
getUsers()
: Collection<int, User>
-
removeUser()
: static
-
setDescription()
: static
-
setName()
: static
$description
private
string|null
$description
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$name
private
string|null
$name
= null
$users
private
Collection<int, User>
$users
-
#[OneToMany]
-
$targetEntity: \App\Entity\User::class
-
$mappedBy: 'businessType'
__construct()
public
__construct() : mixed
addUser()
public
addUser(User $user) : static
Parameters
-
$user
: User
-
getDescription()
public
getDescription() : string|null
Return values
string|null
getId()
public
getId() : int|null
getName()
public
getName() : string|null
Return values
string|null
getUsers()
public
getUsers() : Collection<int, User>
Return values
Collection<int, User>
removeUser()
public
removeUser(User $user) : static
Parameters
-
$user
: User
-
setDescription()
public
setDescription(string|null $description) : static
Parameters
-
$description
: string|null
-
setName()
public
setName(string $name) : static
Parameters
-
$name
: string
-