protected function addEncryptedSegment(SegmentInterface $segment)
    {
        $this->encryptedSegmentsCount++;
        $this->encryptedSegments[] = $segment;
        $encodedData = $this->encryptionEnvelop->getEncodedData()->getData();
        $encodedData .= (string) $segment;
        $this->encryptionEnvelop->setEncodedData($encodedData);
    }
protected function addEncryptedSegment(SegmentInterface $segment)
    {
        $this->encryptedSegmentsCount++;
        $this->encryptedSegments[] = $segment;
        $encodedData = $this->encryptionEnvelop->getEncodedData()->getData();
        $encodedData .= (string) $segment;
        $this->encryptionEnvelop->setEncodedData($encodedData);
    }
protected function addEncryptedSegment ( SegmentInterface $ segment ) { $ this -> encryptedSegmentsCount ++ ; $ this -> encryptedSegments [ ] = $ segment ; $ encodedData = $ this -> encryptionEnvelop -> getEncodedData ( ) -> getData ( ) ; $ encodedData .= ( string ) $ segment ; $ this -> encryptionEnvelop -> setEncodedData ( $ encodedData ) ; }
Adds a encrypted segment to the message.

@param SegmentInterface $segment
Adds a encrypted segment to the message .