AwsInspector\Model\AbstractResource::__call PHP Method

__call() public method

public __call ( string $method, $args ) : mixed | null
$method string
$args
return mixed | null
    public function __call($method, $args)
    {
        if (substr($method, 0, 3) != 'get') {
            $class = get_class($this);
            throw new \Exception("Invalid method '{$method}' (class: {$class})");
        }
        $field = substr($method, 3);
        if (isset($this->apiData[$field])) {
            return $this->apiData[$field];
        }
        return null;
    }