Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php declare (strict_types=1); namespace Rector\Arguments\ValueObject; use PHPStan\Type..
Decoded Output download
<?php
declare (strict_types=1);
namespace Rector\Arguments\ValueObject;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
use Rector\Validation\RectorAssert;
final class ArgumentAdderWithoutDefaultValue
{
/**
* @readonly
* @var string
*/
private $class;
/**
* @readonly
* @var string
*/
private $method;
/**
* @readonly
* @var int
*/
private $position;
/**
* @readonly
* @var string|null
*/
private $argumentName;
/**
* @readonly
* @var \PHPStan\Type\Type|null
*/
private $argumentType = null;
/**
* @readonly
* @var string|null
*/
private $scope;
public function __construct(string $class, string $method, int $position, ?string $argumentName = null, ?\PHPStan\Type\Type $argumentType = null, ?string $scope = null)
{
$this->class = $class;
$this->method = $method;
$this->position = $position;
$this->argumentName = $argumentName;
$this->argumentType = $argumentType;
$this->scope = $scope;
RectorAssert::className($class);
}
public function getObjectType() : ObjectType
{
return new ObjectType($this->class);
}
public function getMethod() : string
{
return $this->method;
}
public function getPosition() : int
{
return $this->position;
}
public function getArgumentName() : ?string
{
return $this->argumentName;
}
public function getArgumentType() : ?Type
{
return $this->argumentType;
}
public function getScope() : ?string
{
return $this->scope;
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare (strict_types=1);
namespace Rector\Arguments\ValueObject;
use PHPStan\Type\ObjectType;
use PHPStan\Type\Type;
use Rector\Validation\RectorAssert;
final class ArgumentAdderWithoutDefaultValue
{
/**
* @readonly
* @var string
*/
private $class;
/**
* @readonly
* @var string
*/
private $method;
/**
* @readonly
* @var int
*/
private $position;
/**
* @readonly
* @var string|null
*/
private $argumentName;
/**
* @readonly
* @var \PHPStan\Type\Type|null
*/
private $argumentType = null;
/**
* @readonly
* @var string|null
*/
private $scope;
public function __construct(string $class, string $method, int $position, ?string $argumentName = null, ?\PHPStan\Type\Type $argumentType = null, ?string $scope = null)
{
$this->class = $class;
$this->method = $method;
$this->position = $position;
$this->argumentName = $argumentName;
$this->argumentType = $argumentType;
$this->scope = $scope;
RectorAssert::className($class);
}
public function getObjectType() : ObjectType
{
return new ObjectType($this->class);
}
public function getMethod() : string
{
return $this->method;
}
public function getPosition() : int
{
return $this->position;
}
public function getArgumentName() : ?string
{
return $this->argumentName;
}
public function getArgumentType() : ?Type
{
return $this->argumentType;
}
public function getScope() : ?string
{
return $this->scope;
}
}
Function Calls
None |
Stats
MD5 | 172d8ae3320a4f36ca2d4038d60a1659 |
Eval Count | 0 |
Decode Time | 72 ms |