private function validate($method)
    {
        $actionMethod = $method.'Method';
        $ref = new \ReflectionClass($this->manager);

        if (null === $this->$actionMethod || !$ref->hasMethod($this->$actionMethod)) {
            throw new \RuntimeException(sprintf('The "%s" method for "%s" adapter is does not supported', $method, $this->getClass()));
        }
    }
private function validate($method)
    {
        $actionMethod = $method.'Method';
        $ref = new \ReflectionClass($this->manager);

        if (null === $this->$actionMethod || !$ref->hasMethod($this->$actionMethod)) {
            throw new \RuntimeException(sprintf('The "%s" method for "%s" adapter is does not supported', $method, $this->getClass()));
        }
    }
private function validate ( $ method ) { $ actionMethod = $ method . 'Method' ; $ ref = new \ ReflectionClass ( $ this -> manager ) ; if ( null === $ this -> $ actionMethod || ! $ ref -> hasMethod ( $ this -> $ actionMethod ) ) { throw new \ RuntimeException ( sprintf ( 'The "%s" method for "%s" adapter is does not supported' , $ method , $ this -> getClass ( ) ) ) ; } }
Validate the adapter method.

@param string $method The method name

@throws \RuntimeException When the method does not supported
Validate the adapter method .