diff options
Diffstat (limited to 'vendor/symfony/form/Symfony/Component/Form/Tests/Fixtures/Author.php')
-rw-r--r-- | vendor/symfony/form/Symfony/Component/Form/Tests/Fixtures/Author.php | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/vendor/symfony/form/Symfony/Component/Form/Tests/Fixtures/Author.php b/vendor/symfony/form/Symfony/Component/Form/Tests/Fixtures/Author.php new file mode 100644 index 00000000..11204894 --- /dev/null +++ b/vendor/symfony/form/Symfony/Component/Form/Tests/Fixtures/Author.php | |||
@@ -0,0 +1,71 @@ | |||
1 | <?php | ||
2 | |||
3 | /* | ||
4 | * This file is part of the Symfony package. | ||
5 | * | ||
6 | * (c) Fabien Potencier <fabien@symfony.com> | ||
7 | * | ||
8 | * For the full copyright and license information, please view the LICENSE | ||
9 | * file that was distributed with this source code. | ||
10 | */ | ||
11 | |||
12 | namespace Symfony\Component\Form\Tests\Fixtures; | ||
13 | |||
14 | class Author | ||
15 | { | ||
16 | public $firstName; | ||
17 | private $lastName; | ||
18 | private $australian; | ||
19 | public $child; | ||
20 | private $readPermissions; | ||
21 | |||
22 | private $privateProperty; | ||
23 | |||
24 | public function setLastName($lastName) | ||
25 | { | ||
26 | $this->lastName = $lastName; | ||
27 | } | ||
28 | |||
29 | public function getLastName() | ||
30 | { | ||
31 | return $this->lastName; | ||
32 | } | ||
33 | |||
34 | private function getPrivateGetter() | ||
35 | { | ||
36 | return 'foobar'; | ||
37 | } | ||
38 | |||
39 | public function setAustralian($australian) | ||
40 | { | ||
41 | $this->australian = $australian; | ||
42 | } | ||
43 | |||
44 | public function isAustralian() | ||
45 | { | ||
46 | return $this->australian; | ||
47 | } | ||
48 | |||
49 | public function setReadPermissions($bool) | ||
50 | { | ||
51 | $this->readPermissions = $bool; | ||
52 | } | ||
53 | |||
54 | public function hasReadPermissions() | ||
55 | { | ||
56 | return $this->readPermissions; | ||
57 | } | ||
58 | |||
59 | private function isPrivateIsser() | ||
60 | { | ||
61 | return true; | ||
62 | } | ||
63 | |||
64 | public function getPrivateSetter() | ||
65 | { | ||
66 | } | ||
67 | |||
68 | private function setPrivateSetter($data) | ||
69 | { | ||
70 | } | ||
71 | } | ||