for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*******************************************************************************
* This file is part of the GraphQL Bundle package.
*
* (c) YnloUltratech <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
******************************************************************************/
namespace Ynlo\GraphQLBundle\Definition\Traits;
use Ynlo\GraphQLBundle\Definition\DeprecateInterface;
/**
* Trait DeprecateTrait
*/
trait DeprecateTrait
{
* @var string
protected $deprecationReason;
* @param string $deprecationReason
* @return DeprecateInterface
public function setDeprecationReason(?string $deprecationReason): DeprecateInterface
$this->deprecationReason = $deprecationReason;
return $this;
return $this
Ynlo\GraphQLBundle\Defin...n\Traits\DeprecateTrait
Ynlo\GraphQLBundle\Definition\DeprecateInterface
}
* @return bool
public function isDeprecated(): bool
return (bool) $this->getDeprecationReason();
* @return string
public function getDeprecationReason():?string
return $this->deprecationReason;