private function parseClass()
    {
        // check which interfaces are implemented
        $interfaces = [];
        foreach ($this->parentClasses as $pc) {
            $interfaces = array_merge($interfaces,
                $pc->getInterfaceNames()); // returns only the interfaces that the current class implements
        }
        $interfaces = array_unique($interfaces);

        foreach ($interfaces as $i) {
            if ($i == AccessInterface::class) {
                $this->parsedClass->accessInterface = true;
            }

            if ($i == CacheKeyInterface::class) {
                $this->parsedClass->cacheKeyInterface = true;
            }
        }
    }