PATH:
home
/
centosnipponia
/
public_html
/
apptt
/
vendor
/
sebastian
/
type
/
src
<?php declare(strict_types=1); /* * This file is part of sebastian/type. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace SebastianBergmann\Type; final class GenericObjectType extends Type { /** * @var bool */ private $allowsNull; public function __construct(bool $nullable) { $this->allowsNull = $nullable; } public function isAssignable(Type $other): bool { if ($this->allowsNull && $other instanceof NullType) { return true; } if (!$other instanceof ObjectType) { return false; } return true; } public function getReturnTypeDeclaration(): string { return ': ' . ($this->allowsNull ? '?' : '') . 'object'; } public function allowsNull(): bool { return $this->allowsNull; } }
[+]
..
[-] CallableType.php
[edit]
[-] GenericObjectType.php
[edit]
[-] IterableType.php
[edit]
[-] NullType.php
[edit]
[-] ObjectType.php
[edit]
[-] SimpleType.php
[edit]
[-] Type.php
[edit]
[-] TypeName.php
[edit]
[-] UnknownType.php
[edit]
[-] VoidType.php
[edit]
[+]
exception
[-] .htaccess.disabled
[edit]