public function getReports()
    {
        $returnValue = array();

        
        if (count($this->reports) == 0){
        	return $returnValue;
        }
        else{
        	// Sort the reports to make them ordered in the same
        	// order the related components where added.
        	$components = $this->getComponents();
        	$reports = array();
        	foreach ($components as $c){
        		foreach ($this->reports as $r){
        			if ($r->getComponent() === $c){
        				array_push($reports, $r);
        			}
        		}
        	}
        }
        
        $returnValue = $reports;
        

        return (array) $returnValue;
    }