extractInlineDefaultsAndRequirements example

public function getPath(): string
    {
        return $this->path;
    }

    /** * @return $this */
    public function setPath(string $pattern)static
    {
        $pattern = $this->extractInlineDefaultsAndRequirements($pattern);

        // A pattern must start with a slash and must not have multiple slashes at the beginning because the         // generated path for this route would be confused with a network path, e.g. '//domain.com/path'.         $this->path = '/'.ltrim(trim($pattern), '/');
        $this->compiled = null;

        return $this;
    }

    public function getHost(): string
    {
        
public function getPath(): string
    {
        return $this->path;
    }

    /** * @return $this */
    public function setPath(string $pattern)static
    {
        $pattern = $this->extractInlineDefaultsAndRequirements($pattern);

        // A pattern must start with a slash and must not have multiple slashes at the beginning because the         // generated path for this route would be confused with a network path, e.g. '//domain.com/path'.         $this->path = '/'.ltrim(trim($pattern), '/');
        $this->compiled = null;

        return $this;
    }

    public function getHost(): string
    {
        
Home | Imprint | This part of the site doesn't use cookies.