data = $raw; $obj->name = $name; return $obj; } /** * Get a name. */ public function getName(): string { return $this->name; } /** * Get a type. */ public function getType(): string { return $this->data['type']; } /** * Whether is not-storable. */ public function isNotStorable(): bool { return $this->data['notStorable'] ?? false; } /* * Get a parameter value by a name. * * @return mixed */ public function getParam(string $name) { return $this->data[$name] ?? null; } }