Get/set open state

@param   bool|null   $set
@return  bool|null
965356
public function open( $set = null )
    {
        return $this->setting(
            'open',
            null === $set ? null : (bool) $set
        );
    }
630166
public function __isset($name)
    {
        $getterMethod = 'get' . ucfirst($name);
    
        if (!method_exists($this, $getterMethod)) {
            return false;
        }
    
        return (($this->$getterMethod() !== null) ? $this->$getterMethod() : false);
    }
716627
public function getset($key, $value)
    {
        $this->init();
        $result = $this->driver->getset($key, $value);
        return $this->convertFalseToNull($result);
    }
488951
public static <T> Set<T> nullToEmpty(final Set<T> set) {
        return set == null ? N.<T> emptySet() : set;
    }
272756
public function setting($key)
    {
        return isset($this->settings[$key]) ? $this->settings[$key] : null;
    }
17598
public function apply(\Iterator $set)
    {
        $set->rewind();

        return $set->valid() ? $set->current() : $this->default;
    }
1108132
public static function blue($color, $set = null)
    {
        $mode = '';
        $color = self::normalizeColor($color, $mode);
        if (null !== $set) {
            $newColor = [
                $color[0],
                $color[1],
                $set,
            ];
            if (self::hasAlpha($color)) {
                $newColor[3] = $color[3];
            }

            return self::resolveColor($newColor, $mode);
        }

        return $color[2];
    }
478084
@SuppressWarnings("unchecked")
    @NonNull
    public static <T> Set<T> unmodifiableNonNullSet(@Nullable Set<T> set) {
        return set == null || set.isEmpty()
                ? (Set<T>) emptySet()
                : Collections.unmodifiableSet(set);
    }
1046489
static <T> Set<T> freeze(Set<T> set) {
        return set == null ? null : Collections.unmodifiableSet(set);
    }
1040598
public function subset( \PhpSets\Set $set ) {
        $iterator = $set->entries();

        // iterate through $set and return false is an uncommon value is present
        while ( $iterator->valid() ) {
            if ( ! $this->has( $iterator->current() ) ) {
                return false;
            }
            $iterator->next();
        }

        $iterator->rewind();

        return true;
    }
76553
public function __isset($key)
    {
        $getter = 'get' . str_replace('_', '', $key);

        return method_exists($this, $getter) && null !== $this->__get($key);
    }
847343
public function mget(array $keys)
    {
        return array_map(
            function ($value) {
                return $value !== false ? $value : null;
            }, $this->client->mget($keys)
        );
    }
883735
function checkColumns($set = null)
    {
        if ($set !== null) {
            $this->check_columns = $set;
        }

        return $this->check_columns;
    }
284352
public function settings( $set = null )
    {
        $model  = $this->getModel();
        $auth   = $this->getAuthenticationService();

        if ( ! $auth->hasIdentity() )
        {
            return null;
        }

        $userId = $auth->getIdentity()->id;

        if ( null === $set )
        {
            return $model->find( $userId, static::SETTINGS_SECTION )
                         ->settings;
        }
        else
        {
            $structure = $model->find( $userId, static::SETTINGS_SECTION );
            $structure->settings = $set;
            $save = $structure->save();

            if ( $save )
            {
                return $save;
            }
        }

        return null;
    }
686427
public function setCacheEnable($set)
    {
        $this->cacheEnable = $set;
        $log = $set ? 'true' : 'false';
        $this->logger->debug('LRUcache: enable/disable: ' . $log );
        return true;
    }
614934
public function offsetUnset($offset)
    {
        if (false === method_exists($this, 'set' . ucfirst($offset))) {
            unset($this->$offset);

            return $this;
        }

        return $this->offsetSet($offset, null);
    }
87924
public function position( $set = null )
    {
        static $validPositions = array(
            self::POSITION_LEFT,
            self::POSITION_RIGHT
        );

        if ( null !== $set )
        {
            $set = strtolower( $set );

            if ( ! in_array( $set, $validPositions ) )
            {
                $set = static::POSITION_LEFT;
            }
        }

        return $this->setting( 'position', $set );
    }