PHP Class Flitch\Rule\File\MustFollowPsr0

Inheritance: extends Flitch\Rule\AbstractRule, implements Flitch\Rule\TokenRuleInterface
Datei anzeigen Open project: dasprid/flitch

Protected Properties

Property Type Description
$requireVendorNamespace boolean Whether to require a vendor namespace.

Public Methods

Method Description
getListenerTokens ( ) : array getListenerTokens(): defined by TokenRuleInterface.
requireVendorNamespace ( $requireVendorNamespace ) : MustFollowPsr0 Set whether to require a vendor namespace.
visitToken ( File $file ) : void visitToken(): defined by TokenRuleInterface.

Method Details

getListenerTokens() public method

getListenerTokens(): defined by TokenRuleInterface.
See also: TokenRuleInterface::getListenerTokens()
public getListenerTokens ( ) : array
return array

requireVendorNamespace() public method

PSR-0 itself requires a vendor namespace. Since this is not possible in legacy PHP 5.2 code, this option exists as fallback.
public requireVendorNamespace ( $requireVendorNamespace ) : MustFollowPsr0
return MustFollowPsr0

visitToken() public method

visitToken(): defined by TokenRuleInterface.
See also: TokenRuleInterface::visitToken()
public visitToken ( File $file ) : void
$file Flitch\File\File
return void

Property Details

$requireVendorNamespace protected_oe property

Whether to require a vendor namespace.
protected bool $requireVendorNamespace
return boolean