本文整理汇总了PHP中PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法的具体用法?PHP PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct怎么用?PHP PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHP_CodeSniffer_Standards_AbstractScopeSniff
的用法示例。
在下文中一共展示了PHP_CodeSniffer_Standards_AbstractScopeSniff::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructs a Squiz_Sniffs_Commenting_FunctionCommentThrowTagSniff.
*/
public function __construct()
{
parent::__construct(array(T_FUNCTION), array(T_THROW));
}
示例2: __construct
/**
* Constructs a Squiz_Sniffs_Classes_SelfMemberReferenceSniff.
*/
public function __construct()
{
parent::__construct(array(T_CLASS), array(T_DOUBLE_COLON));
}
示例3: __construct
/**
* Constructs the test with the tokens it wishes to listen for.
*/
public function __construct()
{
parent::__construct(array(T_CLASS), array(T_FUNCTION));
}
示例4: __construct
/**
* Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
*/
public function __construct()
{
parent::__construct(array(T_FUNCTION), array(T_DOUBLE_COLON, T_EXTENDS), true);
}
示例5: __construct
/**
* Constructs an AbstractVariableTest.
*/
public function __construct()
{
$scopes = array(T_CLASS, T_TRAIT, T_INTERFACE);
$listen = array(T_FUNCTION, T_VARIABLE, T_DOUBLE_QUOTED_STRING, T_HEREDOC);
parent::__construct($scopes, $listen, true);
}
示例6: __construct
/**
* Constructs an AbstractVariableTest.
*/
public function __construct()
{
$listen = array(T_CLASS, T_INTERFACE);
$scopes = array(T_FUNCTION, T_VARIABLE, T_DOUBLE_QUOTED_STRING);
parent::__construct($listen, $scopes, true);
}
示例7: __construct
public function __construct()
{
parent::__construct(array(T_FUNCTION), array(T_COMMENT, T_DOC_COMMENT), true);
}
示例8: __construct
/**
* Constructs the test with the tokens it wishes to listen for.
*
* @return void
*/
public function __construct()
{
parent::__construct(array(T_FUNCTION), array(T_CLOSE_CURLY_BRACKET));
}
示例9: array
/**
* Construct PropertyCommentSniff
*/
function __construct()
{
$scopes = array(T_CLASS);
parent::__construct($scopes, $this->_tokenTypes, true);
}
示例10: array
/**
* Construct PropertyCommentSniff
*/
function __construct()
{
$scopes = array(T_CLASS);
$listen = array(T_VARIABLE);
parent::__construct($scopes, $listen, true);
}
示例11: __construct
/**
* Constructs the test with the tokens it wishes to listen for.
*/
public function __construct()
{
parent::__construct([T_CLASS], [T_ELSEIF, T_ELSE]);
}
示例12: __construct
/**
* This constructor tells the parent object that we want to find strings (including unquoted) in
* loops.
*
* @return array The array of tokens to run this sniff on.
*/
public function __construct()
{
parent::__construct(array(T_DO, T_FOR, T_FOREACH, T_WHILE), array(T_STRING));
}
示例13: __construct
/**
* Constructs a PEAR_Sniffs_NamingConventions_ValidFunctionNameSniff.
*/
public function __construct()
{
parent::__construct([T_CLASS, T_INTERFACE], [T_FUNCTION], true);
}
示例14: __construct
/**
* Constructs a Squiz_Sniffs_Scope_MethodScopeSniff.
*/
public function __construct()
{
parent::__construct(array(T_CLASS, T_INTERFACE), array(T_FUNCTION));
}
示例15: __construct
/**
* Constructs a Symfony2_Sniffs_Scope_MethodScopeSniff.
*/
public function __construct()
{
parent::__construct([T_CLASS], [T_FUNCTION]);
}