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\Extractor\Annotation;
/**
* @Annotation
class Translate
{
/** @var string */
private $domain = 'messages';
* Translate constructor.
* @param array $values
public function __construct($values)
if (isset($values['domain'])) {
$this->domain = $values['domain'];
}
* @return string
public function getDomain()
return $this->domain;