Example #1
0
 function testMakeNames()
 {
     $this->assertEquals('getHelloThere', \SQRT\DB\Item::MakeGetterName('hello_there'), 'Геттер');
     $this->assertEquals('setHelloThere', \SQRT\DB\Item::MakeSetterName('hello_there'), 'Сеттер');
 }
Example #2
0
 protected function makeItemGetter($col)
 {
     return "  public function " . Item::MakeGetterName($col) . "(\$default = null)\n" . "  {\n" . "    return \$this->get('{$col}', \$default);\n" . "  }";
 }