Registry for Address models
Definition at line 14 of file AddressRegistry.php.
◆ __construct()
__construct |
( |
AddressFactory |
$addressFactory | ) |
|
◆ push()
◆ remove()
Remove an instance of the Address Model from the registry
- Parameters
-
- Returns
- void
Definition at line 61 of file AddressRegistry.php.
63 unset($this->registry[$addressId]);
◆ retrieve()
Get instance of the Address Model identified by id
- Parameters
-
- Returns
- Address
- Exceptions
-
Definition at line 41 of file AddressRegistry.php.
43 if (isset($this->registry[$addressId])) {
44 return $this->registry[$addressId];
46 $address = $this->addressFactory->create();
51 $this->registry[$addressId] =
$address;
static singleField($fieldName, $fieldValue)
◆ $addressFactory
◆ $registry
The documentation for this class was generated from the following file: