public function defaultValue($value)
    {
        if ($this->defaultWaived) {
            $exception = new \LogicException('Defined a default value after `noDefault` was called.');
            $this->logger->critical('Swivel', compact('exception'));
            throw $exception;
        }
        if (!$this->behavior) {
            $callable = function () use ($value) {
                return $value;
            };
            $this->setBehavior($this->getBehavior($callable));
        }

        return $this;
    }
public function defaultValue($value)
    {
        if ($this->defaultWaived) {
            $exception = new \LogicException('Defined a default value after `noDefault` was called.');
            $this->logger->critical('Swivel', compact('exception'));
            throw $exception;
        }
        if (!$this->behavior) {
            $callable = function () use ($value) {
                return $value;
            };
            $this->setBehavior($this->getBehavior($callable));
        }

        return $this;
    }
public function defaultValue ( $ value ) { if ( $ this -> defaultWaived ) { $ exception = new \ LogicException ( 'Defined a default value after `noDefault` was called.' ) ; $ this -> logger -> critical ( 'Swivel' , compact ( 'exception' ) ) ; throw $ exception ; } if ( ! $ this -> behavior ) { $ callable = function ( ) use ( $ value ) { return $ value ; } ; $ this -> setBehavior ( $ this -> getBehavior ( $ callable ) ) ; } return $ this ; }
Add a default value.

Will be used if all other behaviors and values are not enabled for the user's bucket.

@param mixed $value

@return \Zumba\Swivel\BuilderInterface
Add a default value .