Lines Matching refs:attributes
24 public function __construct(int $value, array $attributes = []) { argument
25 $this->attributes = $attributes;
42 …public static function fromString(string $str, array $attributes = [], bool $allowInvalidOctal = f… argument
43 $attributes['rawValue'] = $str;
48 $attributes['kind'] = Int_::KIND_DEC;
49 return new Int_((int) $str, $attributes);
53 $attributes['kind'] = Int_::KIND_HEX;
54 return new Int_(hexdec($str), $attributes);
58 $attributes['kind'] = Int_::KIND_BIN;
59 return new Int_(bindec($str), $attributes);
63 throw new Error('Invalid numeric literal', $attributes);
72 $attributes['kind'] = Int_::KIND_OCT;
73 return new Int_(intval($str, 8), $attributes);