diff --git a/src/Capitalize.php b/src/Capitalize.php new file mode 100644 index 0000000..15795c6 --- /dev/null +++ b/src/Capitalize.php @@ -0,0 +1,41 @@ +compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input): string + { + return <<compile(...))->bindTo($this), + \Closure::fromCallable($this->evaluate(...))->bindTo($this) + ); + } + + private function compile(string $input, string $limit): string + { + return <<