public function validateArgument($argname, $value, $type, $nullable = false)
    {
        if (!$this->checkType($value, $type, $nullable)) {
            throw new OperationArgumentException(sprintf(
                'Method %s() expects $%s to be %s, %s given.',
                $this->operation,
                $argname,
                $type,
                gettype($value)
            ));
        }
    }
public function validateArgument($argname, $value, $type, $nullable = false)
    {
        if (!$this->checkType($value, $type, $nullable)) {
            throw new OperationArgumentException(sprintf(
                'Method %s() expects $%s to be %s, %s given.',
                $this->operation,
                $argname,
                $type,
                gettype($value)
            ));
        }
    }
public function validateArgument ( $ argname , $ value , $ type , $ nullable = false ) { if ( ! $ this -> checkType ( $ value , $ type , $ nullable ) ) { throw new OperationArgumentException ( sprintf ( 'Method %s() expects $%s to be %s, %s given.' , $ this -> operation , $ argname , $ type , gettype ( $ value ) ) ) ; } }
Validate an argument.
@param  string $argname
@param  mixed $value
@param  string $type
@param  bool $nullable
@throws \Gamegos\NoSql\Storage\Exception\OperationArgumentException
Validate an argument .