Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#51 Registro Delle Transazioni (WIP) #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions src/Events/LoggerEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php
/**
* This class implements a Laravel Event for SPIDAuth Package.
*
* @license BSD-3-clause
*/

namespace Italia\SPIDAuth\Events;

use Italia\SPIDAuth\SPIDLogger;

class LoggerEvent
{
/** The current selected Identity Provider. */
protected $idp;

/** The SPIDLogger with current event data. */
protected $SPIDLogger;

/**
* Create a new event instance.
*
* @param SPIDLogger current log data
* @param string current selected Identity Provider
*/
public function __construct(string $idp, SPIDLogger $SPIDLogger)
{
$this->idp = $idp;
$this->SPIDLogger = $SPIDLogger;
}

/**
* Return idp.
*
* @return string Identity Provider used to login
*/
public function getIdp(): string
{
return $this->idp;
}

/**
* Return SPIDLogger.
*
* @return SPIDLogger current log data
*/
public function getSPIDLogger(): SPIDLogger
{
return $this->SPIDLogger;
}
}
Loading