for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Superdesk Web Publisher Analytics Bundle.
*
* Copyright 2017 Sourcefabric z.ú. and contributors.
* For the full copyright and license information, please see the
* AUTHORS and LICENSE files distributed with this source code.
* @copyright 2017 Sourcefabric z.ú
* @license http://www.superdesk.org/license
*/
namespace SWP\Bundle\AnalyticsBundle\Model;
use SWP\Component\Common\Model\TimestampableInterface;
use SWP\Component\Common\Model\TimestampableTrait;
/**
* Class ArticleEvent.
class ArticleEvent implements ArticleEventInterface, TimestampableInterface
{
use TimestampableTrait;
* @var int
protected $id;
* @var string
protected $action;
* @var null|string
protected $value;
* @var ArticleStatisticsInterface
protected $articleStatistics;
* {@inheritdoc}
public function getId()
return $this->id;
}
public function getAction(): string
return $this->action;
public function setAction(string $action): void
$this->action = $action;
public function getValue(): ?string
return $this->value;
public function setValue(?string $value): void
$this->value = $value;
public function getArticleStatistics(): ArticleStatisticsInterface
return $this->articleStatistics;
public function setArticleStatistics(ArticleStatisticsInterface $articleStatistics): void
$this->articleStatistics = $articleStatistics;