File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class MethodDeclaration extends Node implements FunctionLike {
4040 // FunctionBody
4141 'compoundStatementOrSemicolon '
4242 ];
43-
43+
4444 public function hasModifier (int $ targetModifier ) : bool {
4545 if ($ this ->modifiers === null ) {
4646 return false ;
@@ -56,22 +56,6 @@ public function hasModifier(int $targetModifier) : bool {
5656 public function isStatic () : bool {
5757 return $ this ->hasModifier (TokenKind::StaticKeyword);
5858 }
59-
60- public function isPublic () : bool {
61- return $ this ->hasModifier (TokenKind::PublicKeyword);
62- }
63-
64- public function isProtected () : bool {
65- return $ this ->hasModifier (TokenKind::ProtectedKeyword);
66- }
67-
68- public function isPrivate () : bool {
69- return $ this ->hasModifier (TokenKind::PrivateKeyword);
70- }
71-
72- public function isAbstract () : bool {
73- return $ this ->hasModifier (TokenKind::AbstractKeyword);
74- }
7559
7660 public function getName () {
7761 return $ this ->name ->getText ($ this ->getFileContents ());
You can’t perform that action at this time.
0 commit comments