Shipment/Gateway/AbstractGateway.php
protected function createLabel($content, $type, $format, $size)
    {
        $label = new OrderShipmentLabel(); // TODO use SaleFactory ?
        $label
            ->setContent($content)
            ->setType($type)
            ->setFormat($format)
            ->setSize($size);

        return $label;
    }
protected function createLabel($content, $type, $format, $size)
    {
        $label = new OrderShipmentLabel(); // TODO use SaleFactory ?
        $label
            ->setContent($content)
            ->setType($type)
            ->setFormat($format)
            ->setSize($size);

        return $label;
    }
protected function createLabel ( $ content , $ type , $ format , $ size ) { $ label = new OrderShipmentLabel ( ) ; // TODO use SaleFactory ? $ label -> setContent ( $ content ) -> setType ( $ type ) -> setFormat ( $ format ) -> setSize ( $ size ) ; return $ label ; }
Creates the shipment label.

@param string $content
@param string $type
@param string $format
@param string $size

@return OrderShipmentLabel
Creates the shipment label .