StockMovementCollectionTrait
-
template
-
Table of Contents
Properties
-
$movements
: Collection<int, TMovement>
Methods
-
addMovement()
: $this
-
getMovement()
: TMovement|null
-
getMovements()
: Collection<int, TMovement>
-
movementCollectionInit()
: void
-
removeMovement()
: $this
-
setMovements()
: $this
$movements
protected
Collection<int, TMovement>
$movements
addMovement()
public
addMovement(TMovement $movement) : $this
Parameters
-
$movement
: TMovement
-
getMovement()
public
getMovement(int $movementId) : TMovement|null
Parameters
-
$movementId
: int
-
Return values
TMovement|null
getMovements()
public
getMovements() : Collection<int, TMovement>
Return values
Collection<int, TMovement>
movementCollectionInit()
public
movementCollectionInit() : void
removeMovement()
public
removeMovement(TMovement $movement) : $this
Parameters
-
$movement
: TMovement
-
setMovements()
public
setMovements(Collection<int, TMovement>|array<int, TMovement> $movements) : $this
Parameters
-
$movements
: Collection<int, TMovement>|array<int, TMovement>
-