for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Raigu\XRoad\SoapEnvelope;
final class StrAsClientReference implements XRoadMember
{
/**
* @var string
*/
private $parts;
public function xRoadInstance(): string
return $this->parts[0];
}
public function memberClass(): string
return $this->parts[1];
public function memberCode(): string
return $this->parts[2];
public function subSystemCode(): string
return $this->parts[3];
public function __construct(string $reference)
$parts = explode('/', $reference);
if (count($parts) !== 4) {
throw new \Exception('Could not extract client parameters. Invalid format.');
$this->parts = $parts;
$parts
string[]
string
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..