Advertisement
Guest User

tes

a guest
Feb 20th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $app = new TestApplication;
  2. $app->run();
  3.  
  4.  
  5.  
  6. class TestApplication {
  7.  
  8.  
  9. public function run() {
  10.  
  11. $shop = new Shop;
  12.  
  13.  
  14. $books = array(
  15. new Book('The Fellowship of the Ring', 'J.R.R. Tolkien'),
  16. new Book('The Two Towers', 'J.R.R. Tolkien')
  17. );
  18.  
  19.  
  20. foreach ($books as $book) {
  21. $shop->bookAdd($book);
  22. }
  23. }
  24.  
  25. }
  26.  
  27. class shop{
  28.  
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement