Skip to content

Commit

Permalink
Implement ::isNamespaced() method
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 9, 2024
1 parent 4e12098 commit 27a4a34
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/StaticAnalysis/Value/Class_.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ public function namespacedName(): string
return $this->namespacedName;
}

public function isNamespaced(): bool
{
return $this->namespace !== '';
}

public function namespace(): string
{
return $this->namespace;
Expand Down
5 changes: 5 additions & 0 deletions src/StaticAnalysis/Value/Function_.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public function namespacedName(): string
return $this->namespacedName;
}

public function isNamespaced(): bool
{
return $this->namespace !== '';
}

public function namespace(): string
{
return $this->namespace;
Expand Down
5 changes: 5 additions & 0 deletions src/StaticAnalysis/Value/Interface_.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function namespacedName(): string
return $this->namespacedName;
}

public function isNamespaced(): bool
{
return $this->namespace !== '';
}

public function namespace(): string
{
return $this->namespace;
Expand Down
5 changes: 5 additions & 0 deletions src/StaticAnalysis/Value/Trait_.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ public function namespacedName(): string
return $this->namespacedName;
}

public function isNamespaced(): bool
{
return $this->namespace !== '';
}

public function namespace(): string
{
return $this->namespace;
Expand Down

0 comments on commit 27a4a34

Please sign in to comment.