Emplacement
in package
Tags
Table of Contents
- $id : mixed
- $laptops : mixed
- $name : mixed
- $pc : mixed
- __construct() : mixed
- __toString() : mixed
- addLaptop() : self
- addPc() : self
- getId() : int|null
- getLaptops() : Collection|array<string|int, Laptop>
- getName() : string|null
- getPc() : Collection
- removeLaptop() : self
- removePc() : self
- setName() : self
Properties
$id
private
mixed
$id
Tags
$laptops
private
mixed
$laptops
Tags
$name
private
mixed
$name
Tags
$pc
private
mixed
$pc
Tags
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —addLaptop()
public
addLaptop(Laptop $laptop) : self
Parameters
- $laptop : Laptop
Return values
self —addPc()
public
addPc(Pc $pc) : self
Parameters
- $pc : Pc
Return values
self —getId()
public
getId() : int|null
Return values
int|null —getLaptops()
public
getLaptops() : Collection|array<string|int, Laptop>
Return values
Collection|array<string|int, Laptop> —getName()
public
getName() : string|null
Return values
string|null —getPc()
public
getPc() : Collection
Return values
Collection —removeLaptop()
public
removeLaptop(Laptop $laptop) : self
Parameters
- $laptop : Laptop
Return values
self —removePc()
public
removePc(Pc $pc) : self
Parameters
- $pc : Pc
Return values
self —setName()
public
setName(string $name) : self
Parameters
- $name : string