for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Lincable\Parsers;
use Illuminate\Contracts\Container\Container;
use Lincable\Contracts\Parsers\ParameterInterface;
class ColonParser extends Parser
{
/**
* Create a new class instance.
*
* @param \Illuminate\Contracts\Container\Container $app
* @return void
*/
public function __construct(Container $app)
$this->boot($app);
}
* {@inheritdoc}
protected function parseMatches(array $matches): ParameterInterface
return new Options(head($matches));
protected function getDynamicPattern(): string
return '/^\:([a-zA-Z_-]+)$/';