protected function getAllResources(): array
    {
        return array_merge($this->resources, [
            $this->socket->getResourceId() => $this->socket->getResource(),
        ]);
    }
protected function getAllResources(): array
    {
        return array_merge($this->resources, [
            $this->socket->getResourceId() => $this->socket->getResource(),
        ]);
    }
protected function getAllResources ( ) : array { return array_merge ( $ this -> resources , [ $ this -> socket -> getResourceId ( ) => $ this -> socket -> getResource ( ) , ] ) ; }
Gets all resources

@return array<int => resource)
Gets all resources