original_string: protected function _getType()
      {
          $name = __d('content', '(unknown)');
          if ($this->has('content_type') && $this->get('content_type')->has('name')) {
              $name = $this->get('content_type')->get('name');
          }
  
          return $name;
      }
code: protected function _getType()
      {
          $name = __d('content', '(unknown)');
          if ($this->has('content_type') && $this->get('content_type')->has('name')) {
              $name = $this->get('content_type')->get('name');
          }
  
          return $name;
      }
code_tokens: protected function _getType ( ) { $ name = __d ( 'content' , '(unknown)' ) ; if ( $ this -> has ( 'content_type' ) && $ this -> get ( 'content_type' ) -> has ( 'name' ) ) { $ name = $ this -> get ( 'content_type' ) -> get ( 'name' ) ; } return $ name ; }
docstring: Gets content type.
  
  As Content Types are not dependent of Contents (deleting a content_type won't
  remove all contents of that type). Some times we found contents without
  `content_type`, in that cases, if no content_type is found `--unknow--` will
  be returned.
  
  @return string
docstring_tokens: Gets content type .