Heystack\Core\DataObjectSchema\FileDataObjectSchema
An abstract class for schema from files
This abstract class provides a base implementation for file based schema services,
such as Yaml and JSON.
When provided a cache, this class provides caching, which will do automatic invalidation
when the contents of the file changes.
To extend this class, the extending class needs to provide a "parse" method
which should return an array
- Author: Cam Spiers <cameron@heyday.co.nz>
Synopsis
class FileDataObjectSchema
implements
SchemaInterface
{
- // members
- private $config;
- private bool $reference = false;
- private bool $replace = false;
- // methods
- public void __construct()
- protected abstract array parseFile()
- public Identifier getIdentifier()
- public array getFlatStorage()
- public array getParentStorage()
- public array getChildStorage()
- public void setReference()
- public bool getReference()
- public void setReplace()
- public bool getReplace()
- public void mergeSchema()
Hierarchy
Members
private
- $config — array
- $reference — Heystack\Core\DataObjectSchema\bool
- $replace — Heystack\Core\DataObjectSchema\bool