DayleRees\ContainerDebug\Command::buildTableRows PHP Метод

buildTableRows() публичный Метод

Build the rows for the services table.
public buildTableRows ( array $services ) : array
$services array
Результат array
    public function buildTableRows($services)
    {
        $rows = array();
        foreach (array_keys($services) as $identifier) {
            try {
                $service = $this->resolveService($identifier);
                $rows[] = array($identifier, $this->getServiceDescription($service), $this->calculateServiceResolutionTime($identifier));
            } catch (Exception $e) {
                $rows[] = array($identifier, 'Unable to resolve service.', 'N/A');
            }
        }
        return $rows;
    }