phpist

Untitled

Feb 2nd, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <?php
  2. namespace popp\ch03\batch01;
  3.  
  4. use popp\ch03\batch01\ShopProduct;
  5.  
  6. class Runner
  7. {
  8. public static function run()
  9. {
  10. /* listing 03.02 */
  11. $product1 = new ShopProduct();
  12. $product2 = new ShopProduct();
  13. /* /listing 03.02 */
  14.  
  15. /* listing 03.03 */
  16. var_dump($product1);
  17. var_dump($product2);
  18. /* /listing 03.03 */
  19. }
  20. }
  21. var_dump(Runner::run());
Advertisement
Add Comment
Please, Sign In to add comment