sites->find($siteId); if (!$site) { $this->mcpError('not_found', "Site not found: {$siteId}"); } return $this->jsonResponse([ 'id' => $site->getId(), 'name' => $site->getName(), 'contactName' => $site->getContactName(), 'contactPhone' => $site->getContactPhone(), 'contactAddress' => $site->getContactAddress(), 'contactPostalCode' => $site->getContactPostalCode(), 'contactCity' => $site->getContactCity(), 'color' => $site->getColor(), 'createdAt' => $site->getCreatedAt()->format('Y-m-d H:i:s'), 'updatedAt' => $site->getUpdatedAt()->format('Y-m-d H:i:s'), ]); } }