Kdyby\Translation\Phrase::__construct PHP Method

__construct() public method

public __construct ( $message, $count = NULL, $parameters = NULL, $domain = NULL, $locale = NULL )
    public function __construct($message, $count = NULL, $parameters = NULL, $domain = NULL, $locale = NULL)
    {
        $this->message = $message;
        if (is_array($count)) {
            $locale = $domain;
            $domain = $parameters;
            $parameters = $count;
            $count = NULL;
        }
        $this->count = $count;
        $this->parameters = (array) $parameters;
        $this->domain = $domain;
        $this->locale = $locale;
    }