Example #1
0
 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());
 }
Example #2
0
 /**
  * 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;
 }