public static function mergeFlags(Translation $from, Translation $to, $options = self::DEFAULTS)
    {
        if ($options & self::FLAGS_THEIRS) {
            $to->deleteFlags();
        }

        if (!($options & self::FLAGS_OURS)) {
            foreach ($from->getFlags() as $flag) {
                $to->addFlag($flag);
            }
        }
    }
public static function mergeFlags(Translation $from, Translation $to, $options = self::DEFAULTS)
    {
        if ($options & self::FLAGS_THEIRS) {
            $to->deleteFlags();
        }

        if (!($options & self::FLAGS_OURS)) {
            foreach ($from->getFlags() as $flag) {
                $to->addFlag($flag);
            }
        }
    }
public static function mergeFlags ( Translation $ from , Translation $ to , $ options = self :: DEFAULTS ) { if ( $ options & self :: FLAGS_THEIRS ) { $ to -> deleteFlags ( ) ; } if ( ! ( $ options & self :: FLAGS_OURS ) ) { foreach ( $ from -> getFlags ( ) as $ flag ) { $ to -> addFlag ( $ flag ) ; } } }
Merge the flags of two translations.

@param Translation $from
@param Translation $to
@param int         $options
Merge the flags of two translations .