for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the MilioooMessageBundle package.
*
* (c) Michiel boeckaert <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Miliooo\MessagingBundle\Validator\Constraint;
use Symfony\Component\Validator\Constraint;
/**
* Self recipient constraint.
* @author Michiel Boeckaert <[email protected]>
class SelfRecipient extends Constraint
{
public $message = 'validate.author_not_recipient';
* {@inheritdoc}
public function validatedBy()
return 'miliooo_messaging.validator.self_recipient';
}
* {@inheritDoc}
public function getTargets()
return self::PROPERTY_CONSTRAINT;