Image.php
public function getDependencies()
    {
        $dependencies = array();

        $file = $this->getFilePath();
        if ($file) {
            $dependencies[] = $file;
        }

        foreach ($this->operations as $operation) {
            foreach ($operation[1] as $argument) {
                if ($argument instanceof self) {
                    $dependencies = array_merge($dependencies, $argument->getDependencies());
                }
            }
        }

        return $dependencies;
    }
public function getDependencies()
    {
        $dependencies = array();

        $file = $this->getFilePath();
        if ($file) {
            $dependencies[] = $file;
        }

        foreach ($this->operations as $operation) {
            foreach ($operation[1] as $argument) {
                if ($argument instanceof self) {
                    $dependencies = array_merge($dependencies, $argument->getDependencies());
                }
            }
        }

        return $dependencies;
    }
public function getDependencies ( ) { $ dependencies = array ( ) ; $ file = $ this -> getFilePath ( ) ; if ( $ file ) { $ dependencies [ ] = $ file ; } foreach ( $ this -> operations as $ operation ) { foreach ( $ operation [ 1 ] as $ argument ) { if ( $ argument instanceof self ) { $ dependencies = array_merge ( $ dependencies , $ argument -> getDependencies ( ) ) ; } } } return $ dependencies ; }
Get all the files that this image depends on.

@return string[] this is an array of strings containing all the files that the
current Image depends on
Get all the files that this image depends on .