bat_api.bat_type_field_handler.inc 474 Bytes
Newer Older
Nicolò Caruso's avatar
Nicolò Caruso committed
1 2
<?php

Nicolò Caruso's avatar
Nicolò Caruso committed
3 4 5 6 7 8 9
/**
 * @file
 */

/**
 *
 */
Nicolò Caruso's avatar
Nicolò Caruso committed
10
interface BatTypeFieldHandlerInterface {
Nicolò Caruso's avatar
Nicolò Caruso committed
11 12 13 14

  /**
   * @return string
   */
Nicolò Caruso's avatar
Nicolò Caruso committed
15 16
  public function getFieldType();

Nicolò Caruso's avatar
Nicolò Caruso committed
17 18 19
  /**
   * @return array
   */
Nicolò Caruso's avatar
Nicolò Caruso committed
20
  public function getFieldInfo();
Nicolò Caruso's avatar
Nicolò Caruso committed
21

Nicolò Caruso's avatar
Nicolò Caruso committed
22 23
}

Nicolò Caruso's avatar
Nicolò Caruso committed
24 25 26
/**
 *
 */
Nicolò Caruso's avatar
Nicolò Caruso committed
27
abstract class BatTypeFieldHandlerBase implements BatTypeFieldHandlerInterface {
Nicolò Caruso's avatar
Nicolò Caruso committed
28 29

  /**
Nicolò Caruso's avatar
Nicolò Caruso committed
30
   * @var BatType
Nicolò Caruso's avatar
Nicolò Caruso committed
31
   */
Nicolò Caruso's avatar
Nicolò Caruso committed
32 33
  protected $type;

Nicolò Caruso's avatar
Nicolò Caruso committed
34 35 36
  /**
   * @param BatType $type
   */
Nicolò Caruso's avatar
Nicolò Caruso committed
37 38 39
  public function __construct(BatType $type) {
    $this->type = $type;
  }
Nicolò Caruso's avatar
Nicolò Caruso committed
40

Nicolò Caruso's avatar
Nicolò Caruso committed
41
}