SectionObjects.php 560 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /*
  3. * This file is part of Mustache.php.
  4. *
  5. * (c) 2010-2016 Justin Hileman
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. class SectionObjects
  11. {
  12. public $start = 'It worked the first time.';
  13. public function middle()
  14. {
  15. return new SectionObject();
  16. }
  17. public $final = 'Then, surprisingly, it worked the final time.';
  18. }
  19. class SectionObject
  20. {
  21. public $foo = 'And it worked the second time.';
  22. public $bar = 'As well as the third.';
  23. }