NewItem extends Save
FinalYes
Class DefaultStrategy
Table of Contents
Constants
- REPO_PRIORITY_A = 'A'
- REPO_PRIORITY_B = 'B'
- REPO_PRIORITY_C = 'C'
Methods
- __construct() : mixed
- FindStrategy constructor.
- save() : Result
- saveParents() : Result
- setLocationRepositories() : self
Constants
REPO_PRIORITY_A
public
mixed
REPO_PRIORITY_A
= 'A'
REPO_PRIORITY_B
public
mixed
REPO_PRIORITY_B
= 'B'
REPO_PRIORITY_C
public
mixed
REPO_PRIORITY_C
= 'C'
Methods
__construct()
FindStrategy constructor.
public
__construct([array<string|int, IRepository> $locationRepositories = [] ]) : mixed
Parameters
- $locationRepositories : array<string|int, IRepository> = []
Tags
save()
public
save(Location $location) : Result
Parameters
- $location : Location
Return values
ResultsaveParents()
public
saveParents(Parents $parents) : Result
Parameters
- $parents : Parents
Return values
ResultsetLocationRepositories()
public
setLocationRepositories(array<string|int, mixed> $locationRepositories) : self
Parameters
- $locationRepositories : array<string|int, mixed>