PHP Class Equip\Directory

Inheritance: extends Equip\Structure\Dictionary
Show file Open project: equip/framework Class Usage Examples

Public Methods

Method Description
action ( string $method, string $path, string | Action $domainOrAction ) : static
any ( string $path, string | Action $domainOrAction ) : static
delete ( string $path, string | Action $domainOrAction ) : static
get ( string $path, string | Action $domainOrAction ) : static
head ( string $path, string | Action $domainOrAction ) : static
options ( string $path, string | Action $domainOrAction ) : static
patch ( string $path, string | Action $domainOrAction ) : static
post ( string $path, string | Action $domainOrAction ) : static
prefix ( string $path ) : string Add the prefix to a path.
put ( string $path, string | Action $domainOrAction ) : static
withPrefix ( string $prefix ) : static Set the directory path prefix.
withoutPrefix ( ) : static Remove the directory path prefix.

Protected Methods

Method Description
assertValid ( array $data )

Method Details

action() public method

public action ( string $method, string $path, string | Action $domainOrAction ) : static
$method string
$path string
$domainOrAction string | Action
return static

any() public method

public any ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

assertValid() protected method

protected assertValid ( array $data )
$data array

delete() public method

public delete ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

get() public method

public get ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

head() public method

public head ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

options() public method

public options ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

patch() public method

public patch ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

post() public method

public post ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

prefix() public method

Add the prefix to a path.
public prefix ( string $path ) : string
$path string
return string

put() public method

public put ( string $path, string | Action $domainOrAction ) : static
$path string
$domainOrAction string | Action
return static

withPrefix() public method

Set the directory path prefix.
public withPrefix ( string $prefix ) : static
$prefix string
return static

withoutPrefix() public method

Remove the directory path prefix.
public withoutPrefix ( ) : static
return static