Пример #1
0
 function testMakeNames()
 {
     $this->assertEquals('getHelloThere', \SQRT\DB\Item::MakeGetterName('hello_there'), 'Геттер');
     $this->assertEquals('setHelloThere', \SQRT\DB\Item::MakeSetterName('hello_there'), 'Сеттер');
 }
Пример #2
0
 protected function makeItemSetter($col)
 {
     return "  /** @return static */\n" . "  public function " . Item::MakeSetterName($col) . "(\${$col})\n" . "  {\n" . "    return \$this->set('{$col}', \${$col});\n" . "  }";
 }