Add RecordEvent when rotated

This commit is contained in:
Benoît Burnichon
2016-02-18 15:26:19 +01:00
parent ba898a1957
commit d93983caeb
6 changed files with 69 additions and 9 deletions

View File

@@ -0,0 +1,39 @@
<?php
/**
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Record;
use Alchemy\Phrasea\Core\Event\Record\RecordEvent;
use Alchemy\Phrasea\Model\RecordInterface;
class RecordWasRotated extends RecordEvent
{
/**
* @var int
*/
private $angle;
/**
* RecordWasRotated constructor.
*
* @param RecordInterface $record
* @param int $angle
*/
public function __construct(RecordInterface $record, $angle)
{
parent::__construct($record);
$this->angle = $angle;
}
public function getAngle()
{
return $this->angle;
}
}