Author.php 519 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of sebastian/comparator.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace SebastianBergmann\Comparator;
  11. /**
  12. * An author.
  13. */
  14. class Author
  15. {
  16. // the order of properties is important for testing the cycle!
  17. public $books = [];
  18. private $name = '';
  19. public function __construct($name)
  20. {
  21. $this->name = $name;
  22. }
  23. }