My first commit of codes
This commit is contained in:
22
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php
vendored
Normal file
22
vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/ClassLike.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace PhpParser\Node\Stmt;
|
||||
|
||||
use PhpParser\Node;
|
||||
|
||||
abstract class ClassLike extends Node\Stmt {
|
||||
/** @var string Name */
|
||||
public $name;
|
||||
/** @var Node[] Statements */
|
||||
public $stmts;
|
||||
|
||||
public function getMethods() {
|
||||
$methods = array();
|
||||
foreach ($this->stmts as $stmt) {
|
||||
if ($stmt instanceof ClassMethod) {
|
||||
$methods[] = $stmt;
|
||||
}
|
||||
}
|
||||
return $methods;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user