src/SecucardConnect/ApiClientConfiguration.php
public function isValid()
    {
        $data = $this->toArray();

        $missing = array_diff(self::$REQUIRED_FIELDS, array_keys($data));

        if ($missing) {
            throw new \InvalidArgumentException('Config is missing the following keys: ' . implode(', ', $missing));
        }

        return true;
    }
public function isValid()
    {
        $data = $this->toArray();

        $missing = array_diff(self::$REQUIRED_FIELDS, array_keys($data));

        if ($missing) {
            throw new \InvalidArgumentException('Config is missing the following keys: ' . implode(', ', $missing));
        }

        return true;
    }
public function isValid ( ) { $ data = $ this -> toArray ( ) ; $ missing = array_diff ( self :: $ REQUIRED_FIELDS , array_keys ( $ data ) ) ; if ( $ missing ) { throw new \ InvalidArgumentException ( 'Config is missing the following keys: ' . implode ( ', ' , $ missing ) ) ; } return true ; }
Validates the configuration for the api client

@throws \InvalidArgumentException If some required param is missing

@return true
Validates the configuration for the api client