original_string: public function setShared($shared)
      {
          $this->changes['shared'] = true;
  
          $this->shared = (bool) $shared;
  
          return $this;
      }
code: public function setShared($shared)
      {
          $this->changes['shared'] = true;
  
          $this->shared = (bool) $shared;
  
          return $this;
      }
code_tokens: public function setShared ( $ shared ) { $ this -> changes [ 'shared' ] = true ; $ this -> shared = ( bool ) $ shared ; return $ this ; }
docstring: Sets if the service must be shared or not.
  
  @param bool $shared Whether the service must be shared or not
  
  @return $this
docstring_tokens: Sets if the service must be shared or not .