public function __construct(Ec2 $ec2, ClientInterface $client) { $this->ec2 = $ec2; $this->client = $client; $this->versiondate = preg_replace('#^.+V(\\d{4})(\\d{2})(\\d{2})$#', '\\1-\\2-\\3', __NAMESPACE__); }