Dumplie\Metadata\Metadata::__construct PHP Method

__construct() public method

public __construct ( MetadataId $id, string $typeSchemaName, array $fields = [] )
$id MetadataId
$typeSchemaName string
$fields array
    public function __construct(MetadataId $id, string $typeSchemaName, array $fields = [])
    {
        $this->id = $id;
        if (empty($typeSchemaName)) {
            throw InvalidArgumentException::emptyValue("type schema name");
        }
        $this->typeSchemaName = $typeSchemaName;
        $this->fields = $fields;
    }