RequiredOption::fromArray( $array )

In this article

{@inheritDoc}

Source

public static function fromArray(array $array): self
{
    static::validateFromArrayData($array, [self::KEY_NAME, self::KEY_VALUE]);
    return new self(OptionEnum::from($array[self::KEY_NAME]), $array[self::KEY_VALUE]);
}

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.