Skip to content

Commit 4a5e7e0

Browse files
committed
Add method to get FQCN in ClassBuilder - Close #86
1 parent 495d60e commit 4a5e7e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Builder/ClassBuilder.php

+10
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,16 @@ public function getNamespace(): ?string
434434
return $this->namespace;
435435
}
436436

437+
/**
438+
* Returns fully qualified class name without leading backslash
439+
*
440+
* @return string
441+
*/
442+
public function getFqcn(): string
443+
{
444+
return \trim($this->namespace . '\\' . $this->name, '\\');
445+
}
446+
437447
public function setName(?string $name): self
438448
{
439449
$this->name = $name;

0 commit comments

Comments
 (0)