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.
*/
use Cubiche\Domain\EventSourcing\EventSourcedAggregateRoot;
use Cubiche\Domain\EventSourcing\EventSourcedAggregateRootInterface;
use Cubiche\Domain\EventSourcing\Metadata\Annotations as ES;
use Cubiche\Domain\Model\AggregateRoot;
use Cubiche\Domain\Model\Tests\Fixtures\PostId;
* BlogEventSourced class.
* @author Ivannis Suárez Jerez <[email protected]>
* @ES\Migratable
class BlogEventSourced extends AggregateRoot implements EventSourcedAggregateRootInterface
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
use EventSourcedAggregateRoot;
* Blog constructor.
* @param PostId $id
public function __construct(PostId $id)
$this->id = $id;
}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.