public function toBinary()
{
$name = bin2hex($this->name);
$binValue = $this->getEncodedValueForProp($this->name, $this->value);
$valueLen = strlen(bin2hex($binValue)) / 3;
$binary = hex2bin($this->dec2hex(strlen($name)) . $this->dec2hex($valueLen) . $this->dec2hex($this->valueType) . $name);
return $binary . $binValue;
}