public function from($reportType)
    {
        if(!ReportTypes::exist($reportType))
            ReportTypes::invalidType();

        $this->type = ReportTypes::get($reportType);

        return $this;
    }
public function from($reportType)
    {
        if(!ReportTypes::exist($reportType))
            ReportTypes::invalidType();

        $this->type = ReportTypes::get($reportType);

        return $this;
    }
public function from ( $ reportType ) { if ( ! ReportTypes :: exist ( $ reportType ) ) ReportTypes :: invalidType ( ) ; $ this -> type = ReportTypes :: get ( $ reportType ) ; return $ this ; }
Set the report type

@param $reportType
@return $this
Set the report type