for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PHP Translation package.
*
* (c) PHP Translation team <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Translation\Bundle\Model;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @author Tobias Nyholm <[email protected]>
class WebUiMessage
{
* @var string
* @Assert\NotBlank(groups={"Create", "Edit", "Delete"})
private $key;
* @Assert\NotBlank(groups={"Create", "Edit"})
private $message;
* @return string
public function getKey()
return $this->key;
}
* @param string $key
* @return WebUiMessage
public function setKey($key)
$this->key = $key;
return $this;
public function getMessage()
return $this->message;
* @param string $message
public function setMessage($message)
$this->message = $message;