Skip to content

Commit 9fc48f1

Browse files
committed
WIP
Signed-off-by: alexmerlin <alex.merlin.1985@gmail.com>
1 parent 9213f33 commit 9fc48f1

4 files changed

Lines changed: 899 additions & 16 deletions

File tree

src/Component.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ public function toKebabCase(bool $noInterface = true): string
111111
return strtolower(implode('-', $parts));
112112
}
113113

114+
public function toPlural(): string
115+
{
116+
return self::pluralize($this->className);
117+
}
118+
114119
public function toSnakeCase(bool $noInterface = true): string
115120
{
116121
return str_replace('-', '_', $this->toKebabCase($noInterface));

0 commit comments

Comments
 (0)