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