BlueprintSchema: Added methods to get the type defaults

This commit is contained in:
Matias Griese
2018-10-15 13:03:10 +03:00
parent 776d1419c1
commit cc61fb5d0f

View File

@@ -26,6 +26,23 @@ class BlueprintSchema extends BlueprintSchemaBase implements ExportInterface
'fields' => true
];
/**
* @return array
*/
public function getTypes()
{
return $this->types;
}
/**
* @param string $name
* @return array
*/
public function getType($name)
{
return $this->types[$name] ?? [];
}
/**
* Validate data against blueprints.
*