original_string: protected function getSchemaForEntity(): Schema
      {
          if ($this->entityClass instanceof Schema) {
              return $this->entityClass;
          }
  
          $model = new $this->entityClass();
  
          if ($model instanceof ActiveRecord) {
              return $model->getSchema();
          }
  
          return new DynamicSchema();
      }
code: protected function getSchemaForEntity(): Schema
      {
          if ($this->entityClass instanceof Schema) {
              return $this->entityClass;
          }
  
          $model = new $this->entityClass();
  
          if ($model instanceof ActiveRecord) {
              return $model->getSchema();
          }
  
          return new DynamicSchema();
      }
code_tokens: protected function getSchemaForEntity ( ) : Schema { if ( $ this -> entityClass instanceof Schema ) { return $ this -> entityClass ; } $ model = new $ this -> entityClass ( ) ; if ( $ model instanceof ActiveRecord ) { return $ model -> getSchema ( ) ; } return new DynamicSchema ( ) ; }
docstring: Retrieve a schema based on Entity Class.
  
  @return Schema
docstring_tokens: Retrieve a schema based on Entity Class .