src/Project/Project.php
public function getResourceByFile(File $file) {
        if (isset($this->resources[md5($file->getAbsolutePath())])) {
            return $this->resources[md5($file->getAbsolutePath())];
        } else {
            return null;
        }
    }
public function getResourceByFile(File $file) {
        if (isset($this->resources[md5($file->getAbsolutePath())])) {
            return $this->resources[md5($file->getAbsolutePath())];
        } else {
            return null;
        }
    }
public function getResourceByFile ( File $ file ) { if ( isset ( $ this -> resources [ md5 ( $ file -> getAbsolutePath ( ) ) ] ) ) { return $ this -> resources [ md5 ( $ file -> getAbsolutePath ( ) ) ] ; } else { return null ; } }
Get the target resource via the given file object or return null
if not registered.

@param File $file
@return AbstractResourceFile The corresponding resource object.
Get the target resource via the given file object or return null if not registered .