for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare (strict_types = 1);
namespace HMLB\DDDBundle\Validator\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* ExistingAggregateRoot.
*
* @author Hugues Maignol <[email protected]>
*/
class ExistingAggregateRoot extends Constraint
{
* @var string
public $class;
public $message = 'Object not found.';
public $nullMessage = 'This cannot be empty.';
public function validatedBy()
return 'hmlb_ddd.existing_aggregate_root';
}
* {@inheritdoc}
public function __construct($options = null)
parent::__construct($options);
public function getDefaultOption()
return 'class';