public function getConfig(): array
    {
        $ref = new \ReflectionClass(get_class($this));
        $properties = $ref->getProperties();
        $config = [];

        //set default values
        foreach ($properties as $property) {
            $value = $property->getValue($this);
            if (null !== $value) {
                $config[Inflector::tableize($property->getName())] = $property->getValue($this);
            }
        }

        return $config;
    }
public function getConfig(): array
    {
        $ref = new \ReflectionClass(get_class($this));
        $properties = $ref->getProperties();
        $config = [];

        //set default values
        foreach ($properties as $property) {
            $value = $property->getValue($this);
            if (null !== $value) {
                $config[Inflector::tableize($property->getName())] = $property->getValue($this);
            }
        }

        return $config;
    }
public function getConfig ( ) : array { $ ref = new \ ReflectionClass ( get_class ( $ this ) ) ; $ properties = $ ref -> getProperties ( ) ; $ config = [ ] ; //set default values foreach ( $ properties as $ property ) { $ value = $ property -> getValue ( $ this ) ; if ( null !== $ value ) { $ config [ Inflector :: tableize ( $ property -> getName ( ) ) ] = $ property -> getValue ( $ this ) ; } } return $ config ; }
Must return the array with plugin config

@return array
Must return the array with plugin config