public function getInterfaces()
    {
        $reflection = new ReflectionClass($this->interface);
        if ($reflection->isInterface()) {
            return array($this->interface);
        }

        return $this->onlyParents($reflection->getInterfaces());
    }