public static function createByBarcodeString($barcodeStr) { $barcode = new Barcode(); $barcode->initByBarcodeString($barcodeStr); return $barcode; }