/** * @return Knit * @throws KernelException */ public function getKnit() : Knit { $this->isBootstrapped(__METHOD__); if (!isset($this->knit)) { throw KernelException::instanceNotAvailable(__METHOD__); } return $this->knit; }