| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?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');
- }
- }
|