<?php
namespace MapasCulturais;

class Definition implements \JsonSerializable{
    use \MapasCulturais\Traits\MagicGetter,
        \MapasCulturais\Traits\MagicSetter;

    public function isDefinition(){
        return true;
    }

    public function jsonSerialize() {
        $result = [];
        foreach ($this as $prop => $val)
            if($prop[0] !== '_')
                $result[$prop] = $val;

        return $result;
    }
}
<?php
namespace MapasCulturais;

class Definition implements \JsonSerializable{
    use \MapasCulturais\Traits\MagicGetter,
        \MapasCulturais\Traits\MagicSetter,
        \MapasCulturais\Traits\MagicCallers;

    public function isDefinition(){
        return true;
    }

    public function jsonSerialize() {
        $result = [];
        foreach ($this as $prop => $val)
            if($prop[0] !== '_')
                $result[$prop] = $val;

        return $result;
    }
}
Fix entity attribute and verify metadata use.
Fix entity attribute and verify metadata use.
