public function testDefaultValueAccess() { $prop = new \vc\Data\Property(123, new \vc\Data\Comment()); $this->assertNull($prop->getValue()); $value = new \vc\Data\Value('val', 'string'); $this->assertSame($prop, $prop->setValue($value)); $this->assertSame($value, $prop->getValue()); }
/** * Builds a new property using this signature as the source * * @return \vc\Data\Property */ public function buildProperty() { $prop = new \vc\Data\Property($this->line, $this->comment); $prop->setStatic($this->static); $prop->setVisibility($this->visibility); return $prop; }