| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php declare(strict_types = 1);
- namespace Cake\PHPStan;
- use PHPStan\Reflection\ClassReflection;
- use PHPStan\Reflection\MethodReflection;
- use PHPStan\Type\ObjectType;
- use PHPStan\Type\Type;
- class TableFindByPropertyMethodReflection implements MethodReflection
- {
- /** @var string */
- private $name;
- /** @var \PHPStan\Reflection\ClassReflection */
- private $declaringClass;
- public function __construct(string $name, ClassReflection $declaringClass)
- {
- $this->name = $name;
- $this->declaringClass = $declaringClass;
- }
- public function getDeclaringClass(): ClassReflection
- {
- return $this->declaringClass;
- }
- public function getPrototype(): MethodReflection
- {
- return $this;
- }
- public function isStatic(): bool
- {
- return false;
- }
- /**
- * @return \PHPStan\Reflection\ParameterReflection[]
- */
- public function getParameters(): array
- {
- return [];
- }
- public function isVariadic(): bool
- {
- return true;
- }
- public function isPrivate(): bool
- {
- return false;
- }
- public function isPublic(): bool
- {
- return true;
- }
- public function getName(): string
- {
- return $this->name;
- }
- public function getReturnType(): Type
- {
- return new ObjectType('\Cake\ORM\Query');
- }
- }
|