Ejemplo n.º 1
0
 public function toArray()
 {
     if (!$this->getParameter('referenced_column')) {
         throw new Mesour\Sources\InvalidStateException('Parameter "referenced_column" is required. Use method setReferencedColumn.');
     }
     if (!$this->tableStructure) {
         throw new Mesour\Sources\InvalidStateException('TableStructure is required. Use method setTableStructure.');
     }
     return array_merge(parent::toArray(), ['tableStructure' => $this->tableStructure->toArray(), 'pattern' => $this->pattern]);
 }
Ejemplo n.º 2
0
 public function toArray()
 {
     $out = parent::toArray();
     $out['values'] = $this->values;
     return $out;
 }