Hoa central
Relation.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Realdom;
38 
47 class Relation extends RealdomArray
48 {
54  const NAME = 'relation';
55 
61  protected $_arguments = [
62  'Conststring classname',
63  'Integer length'
64  ];
65 
66 
67 
68  public function construct()
69  {
70  $this['pairs'] = new Constarray([[
71  0 => realdom()->natural(),
72  1 => realdom()->class($this['classname']->getConstantValue())
73  ]]);
74 
75  parent::construct();
76 
77  return;
78  }
79 }