public function getData(): array
    {
        return [
            $this->serverOriginScheme,
            $this->serverOriginHost,
            $this->serverOriginPort,
            $this->isPreFlightCanBeCached,
            $this->preFlightCacheMaxAge,
            $this->isForceAddMethods,
            $this->isForceAddHeaders,
            $this->isUseCredentials,
            $this->areAllOriginsAllowed,
            $this->allowedOrigins,
            $this->areAllMethodsAllowed,
            $this->allowedLcMethods,
            $this->allowedMethodsList,
            $this->areAllHeadersAllowed,
            $this->allowedLcHeaders,
            $this->allowedHeadersList,
            $this->exposedHeadersList,
            $this->isCheckHost,
        ];
    }
public function getData(): array
    {
        return [
            $this->serverOriginScheme,
            $this->serverOriginHost,
            $this->serverOriginPort,
            $this->isPreFlightCanBeCached,
            $this->preFlightCacheMaxAge,
            $this->isForceAddMethods,
            $this->isForceAddHeaders,
            $this->isUseCredentials,
            $this->areAllOriginsAllowed,
            $this->allowedOrigins,
            $this->areAllMethodsAllowed,
            $this->allowedLcMethods,
            $this->allowedMethodsList,
            $this->areAllHeadersAllowed,
            $this->allowedLcHeaders,
            $this->allowedHeadersList,
            $this->exposedHeadersList,
            $this->isCheckHost,
        ];
    }
public function getData ( ) : array { return [ $ this -> serverOriginScheme , $ this -> serverOriginHost , $ this -> serverOriginPort , $ this -> isPreFlightCanBeCached , $ this -> preFlightCacheMaxAge , $ this -> isForceAddMethods , $ this -> isForceAddHeaders , $ this -> isUseCredentials , $ this -> areAllOriginsAllowed , $ this -> allowedOrigins , $ this -> areAllMethodsAllowed , $ this -> allowedLcMethods , $ this -> allowedMethodsList , $ this -> areAllHeadersAllowed , $ this -> allowedLcHeaders , $ this -> allowedHeadersList , $ this -> exposedHeadersList , $ this -> isCheckHost , ] ; }
Get internal data state. Can be used for data caching.

@return array
Get internal data state . Can be used for data caching .