protected function renderEnabledState(Port $port) { if ($port->isEnabled()) { echo 'On'; } else { echo 'Off'; } }