Skip to content

Commit f9c66a6

Browse files
committed
Fix #284
1 parent 765f295 commit f9c66a6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/generator/project/objects/MemberObject.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use TheSeer\fDOM\fDOMElement;
55

6-
class MemberObject {
6+
class bMemberObject {
77

88
/**
99
* @var fDOMElement
@@ -19,15 +19,15 @@ public function asDom() {
1919
}
2020

2121
public function isPublic() {
22-
return $this->node->getAttribute('visibility', 'public') == 'public';
22+
return $this->node->getAttribute('visibility', 'public') === 'public';
2323
}
2424

2525
public function isPrivate() {
26-
return $this->node->getAttribute('visibility', 'public') == 'private';
26+
return $this->node->getAttribute('visibility', 'private') === 'private';
2727
}
2828

2929
public function isProtected() {
30-
return $this->node->getAttribute('visibility', 'public') == 'protected';
30+
return $this->node->getAttribute('visibility', 'protected') === 'protected';
3131
}
3232

3333
}

src/generator/project/objects/MethodObject.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public function getName() {
2323
}
2424

2525
public function isPublic() {
26-
return $this->node->getAttribute('visibility', 'public') == 'public';
26+
return $this->node->getAttribute('visibility', 'public') === 'public';
2727
}
2828

2929
public function isPrivate() {
30-
return $this->node->getAttribute('visibility', 'public') == 'private';
30+
return $this->node->getAttribute('visibility', 'private') === 'private';
3131
}
3232

3333
public function isProtected() {
34-
return $this->node->getAttribute('visibility', 'public') == 'protected';
34+
return $this->node->getAttribute('visibility', 'protected') === 'protected';
3535
}
3636

3737
}

0 commit comments

Comments
 (0)