Correct capitalization of microsecond

This commit is contained in:
Ben Ramsey
2020-03-04 16:51:46 -06:00
parent a21eb6c3ca
commit b3c26661ca
18 changed files with 83 additions and 83 deletions
+8 -8
View File
@@ -40,16 +40,16 @@ final class Time implements TypeInterface
/**
* @var IntegerObject
*/
private $microSeconds;
private $microseconds;
/**
* @param mixed $seconds
* @param mixed $microSeconds
* @param mixed $microseconds
*/
public function __construct($seconds, $microSeconds = 0)
public function __construct($seconds, $microseconds = 0)
{
$this->seconds = new IntegerObject($seconds);
$this->microSeconds = new IntegerObject($microSeconds);
$this->microseconds = new IntegerObject($microseconds);
}
public function getSeconds(): IntegerObject
@@ -57,14 +57,14 @@ final class Time implements TypeInterface
return $this->seconds;
}
public function getMicroSeconds(): IntegerObject
public function getMicroseconds(): IntegerObject
{
return $this->microSeconds;
return $this->microseconds;
}
public function toString(): string
{
return $this->seconds->toString() . '.' . $this->microSeconds->toString();
return $this->seconds->toString() . '.' . $this->microseconds->toString();
}
public function __toString(): string
@@ -79,7 +79,7 @@ final class Time implements TypeInterface
{
return [
'seconds' => $this->getSeconds()->toString(),
'microseconds' => $this->getMicroSeconds()->toString(),
'microseconds' => $this->getMicroseconds()->toString(),
];
}