Author.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  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 Symfony\Component\Form\Tests\Fixtures;
  11. class Author
  12. {
  13. public $firstName;
  14. private $lastName;
  15. private $australian;
  16. public $child;
  17. private $readPermissions;
  18. private $privateProperty;
  19. public function __construct($firstName = null, $lastName = null)
  20. {
  21. $this->firstName = $firstName;
  22. $this->lastName = $lastName;
  23. }
  24. public function setLastName($lastName)
  25. {
  26. $this->lastName = $lastName;
  27. }
  28. public function getLastName()
  29. {
  30. return $this->lastName;
  31. }
  32. private function getPrivateGetter()
  33. {
  34. return 'foobar';
  35. }
  36. public function setAustralian($australian)
  37. {
  38. $this->australian = $australian;
  39. }
  40. public function isAustralian()
  41. {
  42. return $this->australian;
  43. }
  44. public function setReadPermissions($bool)
  45. {
  46. $this->readPermissions = $bool;
  47. }
  48. public function hasReadPermissions()
  49. {
  50. return $this->readPermissions;
  51. }
  52. private function isPrivateIsser()
  53. {
  54. return true;
  55. }
  56. public function getPrivateSetter()
  57. {
  58. }
  59. private function setPrivateSetter($data)
  60. {
  61. }
  62. }