Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private $products;
- public function __construct(array $products = [])
- {
- foreach ($products as $product) {
- if (!($product instanceof ProductInterface)) {
- die('Does not implement ProductInterface');
- }
- $this->products = $products;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement