for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dock\Docker\Containers;
class Container
{
const STATE_UNKNOWN = 'unknown';
const STATE_RUNNING = 'running';
const STATE_EXITED = 'exited';
/**
* @var string
*/
private $name;
private $image;
* @var array
private $hosts;
private $state;
private $ports;
private $componentName;
private $ipAddress;
* @param string $name
* @param string $image
* @param string $state
* @param array $hosts
* @param array $ports
* @param string $componentName
* @param null $ipAddress
public function __construct($name, $image, $state = self::STATE_UNKNOWN, array $hosts = [], array $ports = [], $componentName = null, $ipAddress = null)
$this->name = $name;
$this->image = $image;
$this->hosts = $hosts;
$this->state = $state;
$this->ports = $ports;
$this->componentName = $componentName;
$this->ipAddress = $ipAddress;
}
* @return string
public function getName()
return $this->name;
public function getImage()
return $this->image;
* @return array
public function getHosts()
return $this->hosts;
public function getState()
return $this->state;
public function getPorts()
return $this->ports;
public function getComponentName()
return $this->componentName;
public function getIpAddress()
return $this->ipAddress;