/** * NotPrimaryServerException constructor. * * @param ServerInterface $primaryServer */ public function __construct(ServerInterface $primaryServer) { parent::__construct(sprintf('Server is not primary of this object. Redirect to given Server "%s:%s".', $primaryServer->getHost(), $primaryServer->getPort())); $this->primaryServer = $primaryServer; }