public function savePropertyAs($property, $name) { $this->addMethod("sideEffect{ {$name} = it.get().value('{$property}'); }"); return $this; }