summaryrefslogtreecommitdiffstats
path: root/src/IndexRecordType.php
blob: 713136ad223c327fb79c321f86bbd40737ae1f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php

namespace Drupal\views_natural_sort;

class IndexRecordType {

  protected $entityType;
  protected $field;

  public function __construct($entity_type_id, $field_machine_name) {
    $this->setEntityType($entity_type_id);
    $this->setField($field_machine_name);
  }

  public function getEntityType() {
    return $this->entityType;
  }

  public function setEntityType($entity_type_id) {
    $this->entityType = $entity_type_id;
  }

  public function getField() {
    return $this->field;
  }

  public function setField($field_machine_name) {
    $this->field = $field_machine_name;
  }
}