StockFactory.php 428 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Core\App\Factory;
  3. class StockFactory extends EntityFactory
  4. {
  5. public function createStock(
  6. $identifier_name,
  7. $identifier_value,
  8. $qty
  9. )
  10. {
  11. $stock = new \Core\App\Entity\Stock();
  12. $stock->setIdentifierName($identifier_name);
  13. $stock->setIdentifierValue($identifier_value);
  14. $stock->setQty($qty);
  15. return $stock;
  16. }
  17. }