Collective\Annotations\Database\Eloquent\Annotations\Scanner::buildBinding PHP Method

buildBinding() protected method

Build the event listener for the class and method.
protected buildBinding ( string $binding, string $class ) : string
$binding string
$class string
return string
    protected function buildBinding($binding, $class)
    {
        return sprintf('$router->model(\'%s\', \'%s\');', $binding, $class) . PHP_EOL;
    }