X
Create New Item
Item Type :
File
Folder
Item Name :
X
Search Results
vendor
spatie
laravel-package-tools
src
Commands
Concerns
Cancel
Backup
Advanced Editor
Save
<?php namespace Spatie\LaravelPackageTools\Commands\Concerns; use Closure; trait SupportsStartWithEndWith { public ?Closure $startWith = null; public ?Closure $endWith = null; public function startWith(callable $callable): self { $this->startWith = $callable; return $this; } public function endWith(callable $callable): self { $this->endWith = $callable; return $this; } protected function processStartWith(): self { if ($this->startWith) { ($this->startWith)($this); } return $this; } protected function processEndWith(): self { if ($this->endWith) { ($this->endWith)($this); } return $this; } }