Вместо того, что вы делаете, попробуйте
(для статических членов, которые относятся к классу и доступны всем экземплярам)
class myClass {
protected static $_property;
protected static $_property__type;
}
myClass::$_property = 'A string of text';
myClass::$_property__type = VarType::STRING | VarType::READ_ONLY;
(для обычных, нестатических переменных-членов)
class myClass {
function __construct()
{
$this->_property = "A string of text";
$this->_property__type = VarType::STRING | VarType::READ_ONLY;
}
...
}