public function setDefinition($reportDefinition)
    {
        if ($reportDefinition instanceof ReportDefinitionBuilder) {
            $reportDefinition = $reportDefinition->build();
        }

        $this->definition = $reportDefinition;

        return $this;
    }
public function setDefinition($reportDefinition)
    {
        if ($reportDefinition instanceof ReportDefinitionBuilder) {
            $reportDefinition = $reportDefinition->build();
        }

        $this->definition = $reportDefinition;

        return $this;
    }
public function setDefinition ( $ reportDefinition ) { if ( $ reportDefinition instanceof ReportDefinitionBuilder ) { $ reportDefinition = $ reportDefinition -> build ( ) ; } $ this -> definition = $ reportDefinition ; return $ this ; }
Sets the report definition.

@param ReportDefinitionBuilder|string $reportDefinition The report definition, XML document

@return self
Sets the report definition .