for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Translation\Bundle\Model;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @author Tobias Nyholm <[email protected]>
*/
class GuiMessageRepresentation
{
* @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 GuiMessageRepresentation
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;