public function isPathValid(ExecutionContextInterface $context)
    {
        if ($this->getStorage() instanceof Storage && $this->getStorage()->isPathRequired() && !$this->getPath()) {
            $context->addViolationAt('path', 'Path is required to fill for current type of storage');
        }
    }
public function isPathValid(ExecutionContextInterface $context)
    {
        if ($this->getStorage() instanceof Storage && $this->getStorage()->isPathRequired() && !$this->getPath()) {
            $context->addViolationAt('path', 'Path is required to fill for current type of storage');
        }
    }
public function isPathValid ( ExecutionContextInterface $ context ) { if ( $ this -> getStorage ( ) instanceof Storage && $ this -> getStorage ( ) -> isPathRequired ( ) && ! $ this -> getPath ( ) ) { $ context -> addViolationAt ( 'path' , 'Path is required to fill for current type of storage' ) ; } }
Is valid path for current type.

@param ExecutionContextInterface $context
Is valid path for current type .