1234567891011121314151617181920212223 |
- <?php
- namespace Core\App\Factory;
- class StockFactory extends EntityFactory
- {
- public function createStock(
- $identifier_name,
- $identifier_value,
- $qty
- )
- {
- $stock = new \Core\App\Entity\Stock();
- $stock->setIdentifierName($identifier_name);
- $stock->setIdentifierValue($identifier_value);
- $stock->setQty($qty);
-
- return $stock;
-
- }
- }
|