Gc\Property\Model::getValue PHP Method

getValue() public method

Return property value
public getValue ( ) : mixed
return mixed
    public function getValue()
    {
        if (empty($this->value)) {
            $this->loadValue();
        }
        return $this->value->getValue();
    }

Usage Example

示例#1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetValue()
 {
     $this->assertEquals('', $this->object->getValue());
     $this->object->setValue('string');
     $this->assertEquals('string', $this->object->getValue());
 }