protected function createNewDirectoryChecker($name, DirectoryResource $resource = null)
    {
        $resource = $resource ?: new DirectoryResource($this->getResource()->getResource().'/'.$name);
        $this->directories[$name] = new NewDirectoryStateChecker($this->getBag(), $resource, $this->getEventsMask());
    }
protected function createNewDirectoryChecker($name, DirectoryResource $resource = null)
    {
        $resource = $resource ?: new DirectoryResource($this->getResource()->getResource().'/'.$name);
        $this->directories[$name] = new NewDirectoryStateChecker($this->getBag(), $resource, $this->getEventsMask());
    }
protected function createNewDirectoryChecker ( $ name , DirectoryResource $ resource = null ) { $ resource = $ resource ? : new DirectoryResource ( $ this -> getResource ( ) -> getResource ( ) . '/' . $ name ) ; $ this -> directories [ $ name ] = new NewDirectoryStateChecker ( $ this -> getBag ( ) , $ resource , $ this -> getEventsMask ( ) ) ; }
Creates new DirectoryStateChecker

@param string                 $name
@param null|DirectoryResource $resource
Creates new DirectoryStateChecker