src/Model/Git/Tree.php
private function getObjectData($path)
    {
        foreach ($this->tree as $objectData) {
            if ($objectData['path'] === $path) {
                return $objectData;
            }
        }

        return false;
    }
private function getObjectData($path)
    {
        foreach ($this->tree as $objectData) {
            if ($objectData['path'] === $path) {
                return $objectData;
            }
        }

        return false;
    }
private function getObjectData ( $ path ) { foreach ( $ this -> tree as $ objectData ) { if ( $ objectData [ 'path' ] === $ path ) { return $ objectData ; } } return false ; }
Find an object definition by its path.

@param string $path

@return array|false
Find an object definition by its path .