mirror of
https://github.com/code-rhapsodie/IbexaMailingBundle.git
synced 2026-03-24 14:52:18 +01:00
143 lines
2.6 KiB
PHP
143 lines
2.6 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace CodeRhapsodie\IbexaMailingBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Table(name="mailing_stats_hit")
|
|
*
|
|
* @ORM\Entity(repositoryClass="CodeRhapsodie\IbexaMailingBundle\Repository\StatHitRepository")
|
|
*/
|
|
class StatHit
|
|
{
|
|
use Compose\Metadata;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @ORM\Column(name="STHIT_id", type="bigint", nullable=false)
|
|
*
|
|
* @ORM\Id
|
|
*
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="STHIT_url", type="string", nullable=false)
|
|
*/
|
|
private $url;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="STHIT_user_key", type="string", nullable=false)
|
|
*/
|
|
private $userKey;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="STHIT_os_name", type="string", nullable=true)
|
|
*/
|
|
private $osName;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="STHIT_browser_name", type="string", nullable=true)
|
|
*/
|
|
private $browserName;
|
|
|
|
/**
|
|
* @var Broadcast
|
|
*
|
|
* @ORM\ManyToOne(targetEntity="CodeRhapsodie\IbexaMailingBundle\Entity\Broadcast", inversedBy="statHits")
|
|
*
|
|
* @ORM\JoinColumn(name="BDCST_id", referencedColumnName="BDCST_id")
|
|
*/
|
|
private $broadcast;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->created = new \DateTime();
|
|
}
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setId(int $id): self
|
|
{
|
|
$this->id = $id;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getUrl(): string
|
|
{
|
|
return $this->url;
|
|
}
|
|
|
|
public function setUrl(string $url): self
|
|
{
|
|
$this->url = $url;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getUserKey(): string
|
|
{
|
|
return $this->userKey;
|
|
}
|
|
|
|
public function setUserKey(string $userKey): self
|
|
{
|
|
$this->userKey = $userKey;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getOsName(): string
|
|
{
|
|
return $this->osName;
|
|
}
|
|
|
|
public function setOsName(string $osName): self
|
|
{
|
|
$this->osName = $osName;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getBrowserName(): string
|
|
{
|
|
return $this->browserName;
|
|
}
|
|
|
|
public function setBrowserName(string $browserName): self
|
|
{
|
|
$this->browserName = $browserName;
|
|
|
|
return $this;
|
|
}
|
|
|
|
public function getBroadcast(): Broadcast
|
|
{
|
|
return $this->broadcast;
|
|
}
|
|
|
|
public function setBroadcast(Broadcast $broadcast): self
|
|
{
|
|
$this->broadcast = $broadcast;
|
|
|
|
return $this;
|
|
}
|
|
}
|