entity; switch ($name) { case 'deleted': return $quota->getDeleted(); case 'remaining': return $quota->getRemaining(); case 'state': return $quota->getState(); case 'total': return $quota->getTotal(); case 'used': return $quota->getUsed(); default: return parent::__get($name); } } }