Issues (3627)

ReportBundle/Scheduler/Option/ExportOption.php (1 issue)

1
<?php
2
3
namespace Mautic\ReportBundle\Scheduler\Option;
4
5
class ExportOption
6
{
7
    /**
8
     * @var int
9
     */
10
    private $reportId;
11
12
    /**
13
     * @param int|null $reportId
14
     */
15
    public function __construct($reportId)
16
    {
17
        if (!is_null($reportId) && !is_numeric($reportId)) {
0 ignored issues
show
The condition is_numeric($reportId) is always true.
Loading history...
18
            throw new \InvalidArgumentException();
19
        }
20
21
        $this->reportId = (int) $reportId;
22
    }
23
24
    /**
25
     * @return int
26
     */
27
    public function getReportId()
28
    {
29
        return $this->reportId;
30
    }
31
}
32