classes/phing/Target.php
public function getTasks()
    {
        $tasks = [];
        for ($i = 0, $size = count($this->children); $i < $size; $i++) {
            $tsk = $this->children[$i];
            if ($tsk instanceof Task) {
                // note: we're copying objects here!
                $tasks[] = clone $tsk;
            }
        }

        return $tasks;
    }
public function getTasks()
    {
        $tasks = [];
        for ($i = 0, $size = count($this->children); $i < $size; $i++) {
            $tsk = $this->children[$i];
            if ($tsk instanceof Task) {
                // note: we're copying objects here!
                $tasks[] = clone $tsk;
            }
        }

        return $tasks;
    }
public function getTasks ( ) { $ tasks = [ ] ; for ( $ i = 0 , $ size = count ( $ this -> children ) ; $ i < $ size ; $ i ++ ) { $ tsk = $ this -> children [ $ i ] ; if ( $ tsk instanceof Task ) { // note: we're copying objects here! $ tasks [ ] = clone $ tsk ; } } return $ tasks ; }
Returns an array of all tasks this target has as childrens.

The task objects are copied here. Don't use this method to modify
task objects.

@return array Task[]
Returns an array of all tasks this target has as childrens .