Gpf_Data_Record::__construct PHP Метод

__construct() публичный Метод

Create record
public __construct ( array $header, array $array = [] )
$header array
$array array values of record from array
        public function __construct($header, $array = array())
        {
            if (is_array($header)) {
                $header = new Gpf_Data_RecordHeader($header);
            }
            $this->header = $header;
            $this->record = array_values($array);
            while (count($this->record) < $this->header->getSize()) {
                $this->record[] = null;
            }
        }