Пример #1
0
 public function __construct(ChecksumCalculatorInterface $checksumCalculator = null)
 {
     parent::__construct($checksumCalculator ?: new Isbn10ChecksumCalculator());
 }
Пример #2
0
 /**
  * @param ConverterInterface[][] $converterMap
  */
 public function __construct(array $converterMap = null)
 {
     parent::__construct();
     $this->converterMap = $converterMap ?: [Ean8::class => [new Ean13Converter()], Ean13::class => [new Ean8Converter(), new Isbn10Converter()], Isbn10::class => [new Ean13Converter()]];
 }