Deployer\Type\Result::toBool PHP Метод

toBool() публичный Метод

Check if output of command is equal "true" string and return true, otherwise false.
public toBool ( ) : boolean
Результат boolean
    public function toBool()
    {
        if ('true' === $this->toString()) {
            return true;
        } else {
            return false;
        }
    }