public function test() { $bind = new Bind('name', 'Mary'); $bind->setValue('Hacker'); $this->assertEquals('Hacker', $bind->getValue()); $this->assertEquals('name', $bind->getName()); $this->assertEquals(':name', $bind->getMarker()); }
public function push(Bind $bind) { $this->bindings[] = $bind; $this->args[$bind->getMarker()] = $bind->getValue(); }