services[] = $service; return $this; } /** * Add docker composer services. * * @param array $services * An array of services. */ public function setServices(array $services) { foreach ($services as $service) { $this->setService($service); } return $this; } /** * {@inheritdoc} */ public function getCommand() { // Append the services to the end of the command. return parent::getCommand() . ' ' . implode(' ', $this->services); } }