public function validateName($path) { if (false === $this->validate($path, $this->getNamePattern())) { throw new InvalidPathException(sprintf('Name "%s" is not valid', $path)); } }