upgraded dependencies

This commit is contained in:
RafficMohammed
2023-01-08 01:59:16 +05:30
parent 51056e3aad
commit f9ae387337
6895 changed files with 133617 additions and 178680 deletions

View File

@@ -48,12 +48,7 @@ class Profile
$this->token = $token;
}
/**
* Sets the token.
*
* @param string $token The token
*/
public function setToken($token)
public function setToken(string $token)
{
$this->token = $token;
}
@@ -61,7 +56,7 @@ class Profile
/**
* Gets the token.
*
* @return string The token
* @return string
*/
public function getToken()
{
@@ -79,7 +74,7 @@ class Profile
/**
* Returns the parent profile.
*
* @return self
* @return self|null
*/
public function getParent()
{
@@ -89,7 +84,7 @@ class Profile
/**
* Returns the parent token.
*
* @return string|null The parent token
* @return string|null
*/
public function getParentToken()
{
@@ -99,19 +94,14 @@ class Profile
/**
* Returns the IP.
*
* @return string|null The IP
* @return string|null
*/
public function getIp()
{
return $this->ip;
}
/**
* Sets the IP.
*
* @param string $ip
*/
public function setIp($ip)
public function setIp(?string $ip)
{
$this->ip = $ip;
}
@@ -119,14 +109,14 @@ class Profile
/**
* Returns the request method.
*
* @return string|null The request method
* @return string|null
*/
public function getMethod()
{
return $this->method;
}
public function setMethod($method)
public function setMethod(string $method)
{
$this->method = $method;
}
@@ -134,43 +124,32 @@ class Profile
/**
* Returns the URL.
*
* @return string|null The URL
* @return string|null
*/
public function getUrl()
{
return $this->url;
}
/**
* @param string $url
*/
public function setUrl($url)
public function setUrl(?string $url)
{
$this->url = $url;
}
/**
* Returns the time.
*
* @return int The time
* @return int
*/
public function getTime()
{
return $this->time ?? 0;
}
/**
* @param int $time The time
*/
public function setTime($time)
public function setTime(int $time)
{
$this->time = $time;
}
/**
* @param int $statusCode
*/
public function setStatusCode($statusCode)
public function setStatusCode(int $statusCode)
{
$this->statusCode = $statusCode;
}
@@ -229,13 +208,11 @@ class Profile
/**
* Gets a Collector by name.
*
* @param string $name A collector name
*
* @return DataCollectorInterface A DataCollectorInterface instance
* @return DataCollectorInterface
*
* @throws \InvalidArgumentException if the collector does not exist
*/
public function getCollector($name)
public function getCollector(string $name)
{
if (!isset($this->collectors[$name])) {
throw new \InvalidArgumentException(sprintf('Collector "%s" does not exist.', $name));
@@ -276,13 +253,9 @@ class Profile
}
/**
* Returns true if a Collector for the given name exists.
*
* @param string $name A collector name
*
* @return bool
*/
public function hasCollector($name)
public function hasCollector(string $name)
{
return isset($this->collectors[$name]);
}