for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Model;
/**
* An activity provider's state stored on a remote LRS.
* @author Christian Flothmann <[email protected]>
final class State
{
* @var Activity The associated activity
private $activity;
* @var Agent The associated agent
private $agent;
* @var string An optional registration id
private $registrationId;
* @var string The state id
private $stateId;
public function __construct(Activity $activity, Agent $agent, $stateId, $registrationId = null)
$this->activity = $activity;
$this->agent = $agent;
$this->stateId = $stateId;
$this->registrationId = $registrationId;
}
* Returns the activity.
* @return Activity The activity
public function getActivity()
return $this->activity;
* Returns the agent.
* @return Agent The agent
public function getAgent()
return $this->agent;
* Returns the registration id.
* @return string The registration id
public function getRegistrationId()
return $this->registrationId;
* Returns the state's id.
* @return string The id
public function getStateId()
return $this->stateId;