File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
33 * @link http://github.com/myclabs/php-enum
4- * @author Matthieu Napoli <matthieu@mnapoli.fr>
54 * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)
65 */
76
1110 * Base Enum class
1211 *
1312 * Create an enum by implementing this class and adding class constants.
13+ *
14+ * @author Matthieu Napoli <matthieu@mnapoli.fr>
1415 */
1516abstract class Enum
1617{
17-
1818 /**
1919 * Enum value
2020 * @var mixed
@@ -85,5 +85,4 @@ public static function __callStatic($name, $arguments)
8585 }
8686 throw new \BadMethodCallException ("No static method or enum constant ' $ name' in class " . get_called_class ());
8787 }
88-
8988}
Original file line number Diff line number Diff line change 1515 */
1616class EnumTest extends \PHPUnit_Framework_TestCase
1717{
18-
1918 /**
2019 * getValue()
2120 */
@@ -103,20 +102,18 @@ public function testBadStaticAccess()
103102 {
104103 EnumFixture::UNKNOWN ();
105104 }
106-
107105}
108106
109107/**
110108 * Fixture class
109+ *
111110 * @method static EnumFixture FOO()
112111 * @method static EnumFixture BAR()
113112 * @method static EnumFixture NUMBER()
114113 */
115114class EnumFixture extends Enum
116115{
117-
118116 const FOO = "foo " ;
119117 const BAR = "bar " ;
120118 const NUMBER = 42 ;
121-
122119}
You can’t perform that action at this time.
0 commit comments