original_string: private function setSubject($blockId): BaseBlock
      {
          /** @var BaseBlock $block */
          $block = $this->admin->getObject($blockId);
          if (!$block) {
              throw $this->createNotFoundException(sprintf('Unable to find block with id %d', $blockId));
          }
          $this->admin->setSubject($block);
  
          return $block;
      }
code: private function setSubject($blockId): BaseBlock
      {
          /** @var BaseBlock $block */
          $block = $this->admin->getObject($blockId);
          if (!$block) {
              throw $this->createNotFoundException(sprintf('Unable to find block with id %d', $blockId));
          }
          $this->admin->setSubject($block);
  
          return $block;
      }
code_tokens: private function setSubject ( $ blockId ) : BaseBlock { /** @var BaseBlock $block */ $ block = $ this -> admin -> getObject ( $ blockId ) ; if ( ! $ block ) { throw $ this -> createNotFoundException ( sprintf ( 'Unable to find block with id %d' , $ blockId ) ) ; } $ this -> admin -> setSubject ( $ block ) ; return $ block ; }
docstring: Initialize the admin subject, to contextualize checkAccess verification.
  
  @param mixed $blockId
  
  @throws NotFoundHttpException
  
  @return BaseBlock
docstring_tokens: Initialize the admin subject to contextualize checkAccess verification .