__construct() 공개 메소드

Any array key in $messageParameters will be used as a placeholder in $messageTemplate.
또한 보기: Symfony\Component\Translation\Translator
public __construct ( string $messageTemplate, array $messageParameters = [], integer | null $messagePluralization = null )
$messageTemplate string The template for the error message
$messageParameters array The parameters that should be substituted in the message template.
$messagePluralization integer | null The value for error message pluralization
예제 #1
0
 public function __construct($propertypath, $messageTemplate, array $messageParameters = array())
 {
     parent::__construct($messageTemplate, $messageParameters);
     $this->propertypath = $propertypath;
 }