Emarref\Jwt\Encryption\AbstractEncryption::__construct PHP Method

__construct() public method

public __construct ( Emarref\Jwt\Algorithm\AlgorithmInterface $algorithm )
$algorithm Emarref\Jwt\Algorithm\AlgorithmInterface
    public function __construct(Algorithm\AlgorithmInterface $algorithm)
    {
        $this->algorithm = $algorithm;
    }

Usage Example

Example #1
0
 /**
  * @param Algorithm\AsymmetricInterface $algorithm
  */
 public function __construct(Algorithm\AsymmetricInterface $algorithm)
 {
     parent::__construct($algorithm);
 }