src/Project/Project.php
public function getMatchRoad(File $file) {
        foreach ($this->roadMap as $road) {
            /* @var $road SourceRoad */
            if ($road->resourceCheck($file)) {
                return $road;
            }
        }
        return NULL;
    }
public function getMatchRoad(File $file) {
        foreach ($this->roadMap as $road) {
            /* @var $road SourceRoad */
            if ($road->resourceCheck($file)) {
                return $road;
            }
        }
        return NULL;
    }
public function getMatchRoad ( File $ file ) { foreach ( $ this -> roadMap as $ road ) { /* @var $road SourceRoad */ if ( $ road -> resourceCheck ( $ file ) ) { return $ road ; } } return NULL ; }
Returns the first match road for the target resource file
with auto registration for the matched resource file.
@param File $file
@return SourceRoad|null
Returns the first match road for the target resource file with auto registration for the matched resource file .