original_string: protected function applyIncludes($dataTypes): array
      {
          $inclusions = explode(',', $this->include);
          // Find any invalid data to include.
          $invalidIncludes = array_diff($inclusions, $dataTypes);
          if (count($invalidIncludes) > 0) {
              $errorMessage = 'WARNING: Invalid include(s)';
              $errorMessage .= ': '.implode(', ', $invalidIncludes).'.'.PHP_EOL;
              $errorMessage .= ' Valid inclusions are '.implode(', ', $dataTypes);
  
              // Output an error message outlining what invalid exclusions were specified.
              Schematic::warning($errorMessage);
          }
          // Remove any explicitly included data types from the list of data types to export.
          return array_intersect($dataTypes, $inclusions);
      }
code: protected function applyIncludes($dataTypes): array
      {
          $inclusions = explode(',', $this->include);
          // Find any invalid data to include.
          $invalidIncludes = array_diff($inclusions, $dataTypes);
          if (count($invalidIncludes) > 0) {
              $errorMessage = 'WARNING: Invalid include(s)';
              $errorMessage .= ': '.implode(', ', $invalidIncludes).'.'.PHP_EOL;
              $errorMessage .= ' Valid inclusions are '.implode(', ', $dataTypes);
  
              // Output an error message outlining what invalid exclusions were specified.
              Schematic::warning($errorMessage);
          }
          // Remove any explicitly included data types from the list of data types to export.
          return array_intersect($dataTypes, $inclusions);
      }
code_tokens: protected function applyIncludes ( $ dataTypes ) : array { $ inclusions = explode ( ',' , $ this -> include ) ; // Find any invalid data to include. $ invalidIncludes = array_diff ( $ inclusions , $ dataTypes ) ; if ( count ( $ invalidIncludes ) > 0 ) { $ errorMessage = 'WARNING: Invalid include(s)' ; $ errorMessage .= ': ' . implode ( ', ' , $ invalidIncludes ) . '.' . PHP_EOL ; $ errorMessage .= ' Valid inclusions are ' . implode ( ', ' , $ dataTypes ) ; // Output an error message outlining what invalid exclusions were specified. Schematic :: warning ( $ errorMessage ) ; } // Remove any explicitly included data types from the list of data types to export. return array_intersect ( $ dataTypes , $ inclusions ) ; }
docstring: Apply given includes.
  
  @param array $dataTypes
  
  @return array
docstring_tokens: Apply given includes .