/** * @param DataValue $value * * @return string the object URI */ protected function getValueUri(DataValue $value) { return $this->vocabulary->getCommonsURI($value->getValue()); }
/** * @dataProvider instanceProvider * @param DataValue $value * @param array $arguments */ public function testToArray(DataValue $value, array $arguments) { $array = $value->toArray(); $this->assertInternalType('array', $array); $this->assertTrue(array_key_exists('type', $array)); $this->assertTrue(array_key_exists('value', $array)); $this->assertEquals($value->getTargetType(), $array['type']); $this->assertEquals($value->getValue(), $array['value']); }
/** * @param DataValue $value * * @return string the object URI */ protected function getValueUri(DataValue $value) { return trim($value->getValue()); }
/** * @dataProvider instanceProvider * @param DataValue $value * @param array $arguments */ public function testGetValueSimple(DataValue $value, array $arguments) { $value->getValue(); $this->assertTrue(true); }
public function formatValueAsText(DataValue $value) { return print_r($value->getValue(), true); }
/** * @param DataValue $value * * @return string */ protected function getLiteralValue(DataValue $value) { return $value->getValue(); }