public function setVirtualCount($value) { if (($value = TPropertyValue::ensureInteger($value)) < 0) { $value = -1; } $this->_virtualCount = $value; }