for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @project Magento Bridge for Symfony 2.
*
* @author Sébastien MALOT <[email protected]>
* @license MIT
* @url <https://github.com/smalot/magento-bundle>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Smalot\MagentoBundle\Event;
use Smalot\Magento\RemoteAdapterInterface;
* Class SecurityEvent
* @package Smalot\MagentoBundle\Event
class SecurityEvent extends AbstractEvent
{
* @var string
protected $apiUser;
protected $apiKey;
protected $sessionId;
* @param RemoteAdapterInterface $remoteAdapter
* @param string $apiUser
* @param string $apiKey
* @param string $sessionId
public function __construct(RemoteAdapterInterface $remoteAdapter, $apiUser, $apiKey, $sessionId = null)
$this->remoteAdapter = $remoteAdapter;
$this->apiUser = $apiUser;
$this->apiKey = $apiKey;
$this->sessionId = $sessionId;
}
public function setApiUser($apiUser)
* @return string
public function getApiUser()
return $this->apiUser;
public function setApiKey($apiKey)
public function getApiKey()
return $this->apiKey;
public function setSessionId($sessionId)
public function getSessionId()
return $this->sessionId;