public function add($element, $dependencies = array())
    {
        // Add
        $this->elements[$element] = (object)array(
            'id' => $element,
            'dependencies' => (array)$dependencies,
            'visited' => false
        );
    }
public function add($element, $dependencies = array())
    {
        // Add
        $this->elements[$element] = (object)array(
            'id' => $element,
            'dependencies' => (array)$dependencies,
            'visited' => false
        );
    }
public function add ( $ element , $ dependencies = array ( ) ) { // Add $ this -> elements [ $ element ] = ( object ) array ( 'id' => $ element , 'dependencies' => ( array ) $ dependencies , 'visited' => false ) ; }
Adds element.

@param string   $element Name of file
@param string[] $dependencies
Adds element .