Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $app = new TestApplication;
- $app->run();
- class TestApplication {
- public function run() {
- $shop = new Shop;
- $books = array(
- new Book('The Fellowship of the Ring', 'J.R.R. Tolkien'),
- new Book('The Two Towers', 'J.R.R. Tolkien')
- );
- foreach ($books as $book) {
- $shop->bookAdd($book);
- }
- }
- }
- class shop{
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement