Get Supervisor by key

@param string $key

@return Supervisor|null
969907
public function getSupervisorByKey($key)
    {
        if (isset($this->supervisors[$key])) {
            return $this->supervisors[$key];
        }

        return null;
    }
1372631
public function getResponseByKey($key)
  {
    return isset($this->responses[$key]) ? $this->responses[$key] : null;
  }
377157
public function get($key)
    {
        //        return $this->claims['data'][$key] ?? null;

        if (isset($this->claims['data'][$key])) {
            return $this->claims['data'][$key];
        } else {
            return null;
        }
    }
1244620
public function get($key) {
        if ($this->hashMap->containsKey($key)) {
            $node = $this->getNodeFromHead($key);
            $this->unset($node);
            $this->updateHead($node);
            return $this->head->getValue();
        }
        return null;
    }
713536
public function clearSupervisorLogAction($key)
    {
        $supervisorManager = $this->get('supervisor.manager');
        $supervisor = $supervisorManager->getSupervisorByKey($key);

        if (!$supervisor) {
            throw new \Exception('Supervisor not found');
        }

        if ($supervisor->clearLog() !== true) {
            $this->get('session')->getFlashBag()->add(
                'error',
                $this->get('translator')->trans('logs.delete.error', array(), 'YZSupervisorBundle')
            );
        }

        return $this->redirect($this->generateUrl('supervisor'));
    }
31545
public function get($key){
		$mc=$this->getMemcache();
		if(empty($mc))return NULL;
		$this->queries_get_count++;
		return $mc->get($key);
		}
1345319
protected function get($key)
    {
        $this->checkForNonEmptyKey($key);
        if (!$this->requestDataHasBeenRetrieved) {
            $this->retrieveRequestData();
        }
        if (!isset($this->cachedRequestData[$key])) {
            return null;
        }

        return $this->cachedRequestData[$key];
    }
1167438
public function get($key) {
        return isset($this->_elements[$key]) ? $this->_elements[$key] : null;
    }
1098355
public function pickUp($key)
    {
        return isset($this->_rawData[$key])
            ? $this->factory($this->_rawData[$key])
            : null;
    }
409659
public function showSupervisorLogAction($key)
    {
        $supervisorManager = $this->get('supervisor.manager');
        $supervisor = $supervisorManager->getSupervisorByKey($key);

        if (!$supervisor) {
            throw new \Exception('Supervisor not found');
        }

        $logs = $supervisor->readLog(0, 0);

        return $this->render('YZSupervisorBundle:Supervisor:showLog.html.twig', array(
            'log' => $logs,
        ));
    }
250960
public function getKeyValue($key)
    {
        return empty($this->_data[$key]) ? null: $this->_data[$key];
    }
674279
protected function getRelationship($key)
    {
        if (true === $this->isHasOne($key)) {
            $this->touch();
            return $this->hasOneRelationships->get($key);
        }
        if (true === $this->isHasMany($key)) {
            $this->touch();
            $collection = $this->hasManyRelationships->get($key);
            if ($collection->isLoaded($collection)) {
                return iterator_to_array($collection);
            }
            return (true === $this->collectionAutoInit) ? iterator_to_array($collection) : $collection->allWithoutLoad();
        }
        return null;
    }
346559
public function getLastByKey($key)
    {
        if ($this->key == $key) return $this;

        return $this->children->getLastByKey($key);
    }
1285738
public function find($key)
    {
        if (isset($this->payload[$key])) {
            return $this->payload[$key];
        }

        return null;
    }
1110655
public static function pull(string $key)
  {
    if (Self::has($key)) {
      $value = Self::get($key);
      Self::forget($key);

      return $value;
    }

    return null;
  }
1204491
public function get($key)
    {
        if ($this->isAcceptable($key)) {
            $key = $this->modelKey($key);
        }

        if ($this->has($key)) {
            return $this->objects[$key];
        }

        return null;
    }
1024056
public function getReference($key)
    {
        if (isset($this->references[$key])) {
            return $this->references[$key];
        }

        return null; // just to be explicit
    }