class Cast
Hierarchy
- class \PhpParser\NodeAbstract implements \PhpParser\Node, \PhpParser\JsonSerializable
Expanded class hierarchy of Cast
10 files declare their use of Cast
- Array_.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Cast/ Array_.php - Bool_.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Cast/ Bool_.php - Double.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Cast/ Double.php - Int_.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Cast/ Int_.php - Object_.php in vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Cast/ Object_.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node/ Expr/ Cast.php, line 7
Namespace
PhpParser\Node\ExprView source
abstract class Cast extends Expr {
/** @var Expr Expression */
public Expr $expr;
/**
* Constructs a cast node.
*
* @param Expr $expr Expression
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(Expr $expr, array $attributes = []) {
$this->attributes = $attributes;
$this->expr = $expr;
}
public function getSubNodeNames() : array {
return [
'expr',
];
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Cast::$expr | public | property | @var Expr Expression |
Cast::getSubNodeNames | public | function | |
Cast::__construct | public | function | Constructs a cast node. |