1 <?php 2 // automatically generated by the FlatBuffers compiler, do not modify 3 4 namespace NamespaceA\NamespaceB; 5 6 use \Google\FlatBuffers\Struct; 7 use \Google\FlatBuffers\Table; 8 use \Google\FlatBuffers\ByteBuffer; 9 use \Google\FlatBuffers\FlatBufferBuilder; 10 11 class StructInNestedNS extends Struct 12 { 13 /** 14 * @param int $_i offset 15 * @param ByteBuffer $_bb 16 * @return StructInNestedNS 17 **/ 18 public function init($_i, ByteBuffer $_bb) 19 { 20 $this->bb_pos = $_i; 21 $this->bb = $_bb; 22 return $this; 23 } 24 25 /** 26 * @return int 27 */ 28 public function GetA() 29 { 30 return $this->bb->getInt($this->bb_pos + 0); 31 } 32 33 /** 34 * @return int 35 */ 36 public function GetB() 37 { 38 return $this->bb->getInt($this->bb_pos + 4); 39 } 40 41 42 /** 43 * @return int offset 44 */ 45 public static function createStructInNestedNS(FlatBufferBuilder $builder, $a, $b) 46 { 47 $builder->prep(4, 8); 48 $builder->putInt($b); 49 $builder->putInt($a); 50 return $builder->offset(); 51 } 52 } 53