We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 971c63a commit c183ea0Copy full SHA for c183ea0
PHP-Parser/lib/PHPParser/Node/Stmt/Class.php
@@ -78,6 +78,17 @@ public function getMethods() {
78
return $methods;
79
}
80
81
+ public function getProperties() {
82
+ $properties = array();
83
+ foreach ($this->stmts as $stmt) {
84
+ if ($stmt instanceof PHPParser_Node_Stmt_Property) {
85
+ $stmt = $stmt->props[0];
86
+ $properties[] = $stmt;
87
+ }
88
89
+ return $properties;
90
91
+
92
public static function verifyModifier($a, $b) {
93
if ($a & 7 && $b & 7) {
94
throw new PHPParser_Error('Multiple access type modifiers are not allowed');
0 commit comments