Json
class Json extends Base
Json importer class
Properties
protected string | $_name | ||
protected | $_classes | from Base | |
protected string | $file |
Methods
__construct(string $json)
Creates the instance.
array
load()
Reads the feature file defined in the constructor and uses the JSON serializer to return all datas as associative array.
Details
in Base at line 30
final string
getName()
Returns the name.
in Base at line 41
final boolean
setName(string $name)
Sets the name.
in Base at line 57
array
getClasses()
Returns all declared classes.
We need this way, because the autoloader will try to include the class file if we use "class_exists" or similar functions.
at line 39
__construct(string $json)
Creates the instance.
at line 51
array
load()
Reads the feature file defined in the constructor and uses the JSON serializer to return all datas as associative array.