Skip to content

Commit

Permalink
Add Connection entity.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Svirin committed Jul 3, 2021
1 parent 9cc6372 commit 346297d
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
1. Configure php extension euspe by documentation (docs/EUSPHPE-20180505/Documentation/EUSignPHPDescription.doc)
1. Remove osplm.ini from extension directory.
1. Add to apache envvars ```LD_LIBRARY_PATH=/server/path/vendor/uis/euspe/servers/default```
1. Configure stubs for IDE to view functions docs.
1. Configure stubs for IDE to view functions docs (https://github.com/andrew-svirin/phpstorm-stubs).
1. Configure directories for servers, certificates, keys.
Look for osplm.dist.ini as example.
Setup 0777 permissions on folders.
Expand Down
44 changes: 44 additions & 0 deletions src/Connection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

namespace AndrewSvirin\EUSPE;

class Connection
{

/**
* @var KeyRing
*/
private $keyRing;

/**
* @var Certificate
*/
private $certificate;

/**
* @var Server
*/
private $server;

public function __construct(KeyRing $keyRing, Certificate $certificate, Server $server)
{
$this->keyRing = $keyRing;
$this->certificate = $certificate;
$this->server = $server;
}

public function getKeyRing(): KeyRing
{
return $this->keyRing;
}

public function getCertificate(): Certificate
{
return $this->certificate;
}

public function getServer(): Server
{
return $this->server;
}
}

0 comments on commit 346297d

Please sign in to comment.