for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Railt package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Railt\Reflection\Stdlib\Scalar;
use Railt\Reflection\Definition\ScalarDefinition;
use Railt\Reflection\Document;
* Class BooleanScalar
class BooleanScalar extends ScalarDefinition
{
* @var string
public const TYPE_NAME = 'Boolean';
public const TYPE_DESCRIPTION = 'Rebel or Empire? Nope! true or false.';
* BooleanScalar constructor.
* @param Document $document
public function __construct(Document $document)
parent::__construct($document, self::TYPE_NAME);
$this->withDescription(self::TYPE_DESCRIPTION);
}
* @return int
public function getLine(): int
return 16;