public __construct ( string | integer $key, Webmozart\Expression\Expression $expr ) | ||
$key | string | integer | The array key. |
$expr | Webmozart\Expression\Expression | The expression to evaluate for the key. |
public function __construct($key, Expression $expr)
{
parent::__construct($expr);
$this->key = (string) $key;
}