for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Cubiche package.
*
* Copyright (c) Cubiche
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cubiche\Domain\EventSourcing\Projector;
use Cubiche\Core\Cqrs\ReadModelInterface;
* Projection class.
* @author Ivannis Suárez Jerez <[email protected]>
class Projection
{
* @var ReadModelInterface
protected $readModel;
* @var Action
protected $action;
* Projection constructor.
* @param ReadModelInterface $readModel
* @param Action $action
public function __construct(ReadModelInterface $readModel, Action $action)
$this->readModel = $readModel;
$this->action = $action;
}
* @return ReadModelInterface
public function readModel()
return $this->readModel;
public function setReadModel(ReadModelInterface $readModel)
* @return Action
public function action()
return $this->action;
public function setAction(Action $action)