* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace IPFS\Annotation; class Param { private $name; private $description; private $default; public function __construct(string $name, string $description, $default = __CLASS__) { $this->name = $name; $this->description = $description; $this->default = $default; } public function getDefault() { return __CLASS__ === $this->default ? null : $this->default; } public function getName(): string { return $this->name; } public function getDescription(): string { return $this->description; } public function hasDefault(): bool { return __CLASS__ !== $this->default; } }