private $children = array();
/**
- * Constructor.
- *
* @param string $token The token
*/
public function __construct($token)
/**
* Sets the parent token.
- *
- * @param Profile $parent
*/
public function setParent(Profile $parent)
{
/**
* Returns the parent token.
*
- * @return null|string The parent token
+ * @return string|null The parent token
*/
public function getParentToken()
{
}
/**
- * @param int The time
+ * @param int $time The time
*/
public function setTime($time)
{
/**
* Adds the child token.
- *
- * @param Profile $child
*/
public function addChild(Profile $child)
{
/**
* Adds a Collector.
- *
- * @param DataCollectorInterface $collector A DataCollectorInterface instance
*/
public function addCollector(DataCollectorInterface $collector)
{
public function __sleep()
{
- return array('token', 'parent', 'children', 'collectors', 'ip', 'method', 'url', 'time');
+ return array('token', 'parent', 'children', 'collectors', 'ip', 'method', 'url', 'time', 'statusCode');
}
}