/**
  * {@InheritDoc}
  */
 public function __construct($id, $domain = 'messages')
 {
     parent::__construct($id, $domain);
     $this->state = parent::isNew() ? static::STATE_NEW : null;
     // sync with the parent's new-attribute
     if (empty(self::$states)) {
         self::$states = array(self::STATE_NONE, self::STATE_FINAL, self::STATE_NEEDS_ADAPTATION, self::STATE_NEEDS_L10N, self::STATE_NEEDS_REVIEW_ADAPTATION, self::STATE_NEEDS_REVIEW_L10N, self::STATE_NEEDS_REVIEW_TRANSLATION, self::STATE_NEEDS_TRANSLATION, self::STATE_NEW, self::STATE_SIGNED_OFF, self::STATE_TRANSLATED);
     }
 }
 /**
  * {@inheritdoc}
  */
 public function __construct($id, $domain = 'messages')
 {
     parent::__construct($id, $domain);
     $this->state = parent::isNew() ? XliffMessageState::STATE_NEW : null;
     // sync with the parent's new-attribute
 }