public function getJsonData() : array
    {
        $config = ['enabled' => $this->isEnabled, 'actions' => []];
        foreach ($this->actions as $action) {
            $config['actions'][] = $action->getJsonData();
        }
        return $config;
    }
public function getJsonData() : array
    {
        $config = ['enabled' => $this->isEnabled, 'actions' => []];
        foreach ($this->actions as $action) {
            $config['actions'][] = $action->getJsonData();
        }
        return $config;
    }
public function getJsonData ( ) : array { $ config = [ 'enabled' => $ this -> isEnabled , 'actions' => [ ] ] ; foreach ( $ this -> actions as $ action ) { $ config [ 'actions' ] [ ] = $ action -> getJsonData ( ) ; } return $ config ; }
Return config data

@return array
Return config data