public static function fromArray(array $array) { $result = new static(); $result->array = $array; return $result; }