Overview

Namespaces

  • Deimos
    • Route
      • Exceptions
  • PHP

Classes

  • Route
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class Route

Namespace: Deimos\Route
Located at Route/Route.php
Methods summary
public
# __construct( array $path, array $defaults = [], array $allowMethods = [] )

Route constructor.

Route constructor.

Parameters

$path
$defaults
$allowMethods

Throws

Deimos\Route\Exceptions\PathNotFound
protected
# init( )

init route

init route

public string
# route( )

Returns

string
public string
# regExp( string $name )

Parameters

$name

Returns

string
public array
# attributes( )

Returns

array
public boolean
# methodIsAllow( $needle )

Parameters

$needle

Returns

boolean
Properties summary
protected string $path
#
protected array $defaults
# []
protected array $allowMethods
# []
protected array $regExp
# []
protected string $defaultRegExp
# '[\w-А-ЯЁа-яё]+'
API documentation generated by ApiGen