Spaces:
No application file
No application file
File size: 2,581 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 |
<?php
namespace Mautic\EmailBundle\Stats\FetchOptions;
use Mautic\StatsBundle\Event\Options\FetchOptions;
class EmailStatOptions extends FetchOptions
{
private array $ids = [];
/**
* @var int|null
*/
private $companyId;
/**
* @var int|null
*/
private $campaignId;
/**
* @var int|null
*/
private $segmentId;
private array $filters = [];
private bool $canViewOthers = false;
/**
* @var string
*/
private $unit;
/**
* @return $this
*/
public function setEmailIds(array $ids)
{
$this->ids = $ids;
return $this;
}
/**
* @return array
*/
public function getEmailIds()
{
return $this->ids;
}
/**
* @return int|null
*/
public function getCompanyId()
{
return $this->companyId;
}
/**
* @param int|null $companyId
*
* @return $this;
*/
public function setCompanyId($companyId)
{
$this->companyId = $companyId;
return $this;
}
/**
* @return int|null
*/
public function getCampaignId()
{
return $this->campaignId;
}
/**
* @param int|null $campaignId
*
* @return $this;
*/
public function setCampaignId($campaignId)
{
$this->campaignId = $campaignId;
return $this;
}
/**
* @return int|null
*/
public function getSegmentId()
{
return $this->segmentId;
}
/**
* @param int|null $segmentId
*
* @return $this;
*/
public function setSegmentId($segmentId)
{
$this->segmentId = $segmentId;
return $this;
}
/**
* @return array
*/
public function getFilters()
{
return $this->filters;
}
/**
* @return $this
*/
public function setFilters(array $filters)
{
$this->filters = $filters;
return $this;
}
public function canViewOthers(): bool
{
return $this->canViewOthers;
}
/**
* @param bool $canViewOthers
*
* @return $this
*/
public function setCanViewOthers($canViewOthers)
{
$this->canViewOthers = $canViewOthers;
return $this;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* @param string $unit
*
* @return $this
*/
public function setUnit($unit)
{
$this->unit = $unit;
return $this;
}
}
|