diff --git "a/class-wb\\DataValue.php" "b/class-wb\\DataValue.php" index 01340cb..7c703d5 100644 --- "a/class-wb\\DataValue.php" +++ "b/class-wb\\DataValue.php" @@ -1,62 +1,62 @@ . # Wikibase namespace wb; /** * A generic DataValue is part of a Snak. */ class DataValue { var $type; var $value; /** * @param $type string Type * @param $value mixed Value */ public function __construct( $type, $value ) { $this->setType( $type ) ->setValue( $value ); } public function getType() { return $this->type; } public function getValue() { - return $this->value(); + return $this->value; } public function setType( $type ) { $this->type = $type; return $this; } public function setValue( $value ) { $this->value = $value; return $this; } public static function createFromData( $data ) { if( ! isset( $data['type'], $data['value'] ) ) { throw new WrongDataException( __CLASS__ ); } return new self( $data['type'], $data['value'] ); } }