mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
36 lines
780 B
PHP
36 lines
780 B
PHP
<?php
|
|
/**
|
|
* Zend Framework (http://framework.zend.com/)
|
|
*
|
|
* @link http://github.com/zendframework/zf2 for the canonical source repository
|
|
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
|
|
* @license http://framework.zend.com/license/new-bsd New BSD License
|
|
*/
|
|
|
|
namespace Zend\Barcode\Object;
|
|
|
|
/**
|
|
* Class for generate Planet barcode
|
|
*/
|
|
class Planet extends Postnet
|
|
{
|
|
/**
|
|
* Coding map
|
|
* - 0 = half bar
|
|
* - 1 = complete bar
|
|
* @var array
|
|
*/
|
|
protected $codingMap = array(
|
|
0 => "00111",
|
|
1 => "11100",
|
|
2 => "11010",
|
|
3 => "11001",
|
|
4 => "10110",
|
|
5 => "10101",
|
|
6 => "10011",
|
|
7 => "01110",
|
|
8 => "01101",
|
|
9 => "01011"
|
|
);
|
|
}
|