public function checkVisibility():bool
    {
        if (null === $this->config) {
            return (true);
        }
        $current_env = FEnv::get("framework.env");
        if (property_exists($this->config, "visibility_$current_env")) {
            if (false === $this->config->{"visibility_$current_env"}) {
                return (false);
            } elseif (true === $this->config->{"visibility_$current_env"}) {
                return (true);
            } elseif (null == $this->config->{"visibility_$current_env"}) {
                return (true);
            } else {
                throw new Server500(new \ArrayObject(array("explain" => "Parse Error on ".$this->app.
                    " config.json file : Cannot determine the visibility of $current_env environment",
                    "solution" => "Set the correct visibility [true, false]")));
            }
        }
        return (true);
    }
public function checkVisibility():bool
    {
        if (null === $this->config) {
            return (true);
        }
        $current_env = FEnv::get("framework.env");
        if (property_exists($this->config, "visibility_$current_env")) {
            if (false === $this->config->{"visibility_$current_env"}) {
                return (false);
            } elseif (true === $this->config->{"visibility_$current_env"}) {
                return (true);
            } elseif (null == $this->config->{"visibility_$current_env"}) {
                return (true);
            } else {
                throw new Server500(new \ArrayObject(array("explain" => "Parse Error on ".$this->app.
                    " config.json file : Cannot determine the visibility of $current_env environment",
                    "solution" => "Set the correct visibility [true, false]")));
            }
        }
        return (true);
    }
public function checkVisibility ( ) : bool { if ( null === $ this -> config ) { return ( true ) ; } $ current_env = FEnv :: get ( "framework.env" ) ; if ( property_exists ( $ this -> config , "visibility_$current_env" ) ) { if ( false === $ this -> config -> { "visibility_$current_env" } ) { return ( false ) ; } elseif ( true === $ this -> config -> { "visibility_$current_env" } ) { return ( true ) ; } elseif ( null == $ this -> config -> { "visibility_$current_env" } ) { return ( true ) ; } else { throw new Server500 ( new \ ArrayObject ( array ( "explain" => "Parse Error on " . $ this -> app . " config.json file : Cannot determine the visibility of $current_env environment" , "solution" => "Set the correct visibility [true, false]" ) ) ) ; } } return ( true ) ; }
Check visibility in current env
@return bool True or false for visibility for each env
@throws Server500 Fenv
Check visibility in current env