No Description

Author.php 828B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /*
  3. * This file is part of the Comparator package.
  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. * @package Comparator
  15. * @author Bernhard Schussek <bschussek@2bepublished.at>
  16. * @copyright Sebastian Bergmann <sebastian@phpunit.de>
  17. * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
  18. * @link http://www.github.com/sebastianbergmann/comparator
  19. */
  20. class Author
  21. {
  22. // the order of properties is important for testing the cycle!
  23. public $books = array();
  24. private $name = '';
  25. public function __construct($name)
  26. {
  27. $this->name = $name;
  28. }
  29. }