public function getBucket(string $name) : SessionBucketInterface
    {
        $segment = $this->session->getSegment($name);
        if (!$segment) {
            return null;
        }
        return new AuraSessionBucketAdapter($segment);
    }
public function getBucket(string $name) : SessionBucketInterface
    {
        $segment = $this->session->getSegment($name);
        if (!$segment) {
            return null;
        }
        return new AuraSessionBucketAdapter($segment);
    }
Returnes session bucket object

@param string $name

@return SessionBucketInterface