private function findCoreByHandle($handle): ?PromiseCore
    {
        foreach ($this->cores as $core) {
            if ($core->getHandle() === $handle) {
                return $core;
            }
        }

        return null;
    }
private function findCoreByHandle($handle): ?PromiseCore
    {
        foreach ($this->cores as $core) {
            if ($core->getHandle() === $handle) {
                return $core;
            }
        }

        return null;
    }
private function findCoreByHandle ( $ handle ) : ? PromiseCore { foreach ( $ this -> cores as $ core ) { if ( $ core -> getHandle ( ) === $ handle ) { return $ core ; } } return null ; }
Find core by handle.

@param resource $handle

@return PromiseCore|null
Find core by handle .