| 1 | <?php | ||
| 10 | class EncryptedSecurityType extends Type | ||
| 11 | { | ||
| 12 | /** | ||
| 13 | * Convert string values to PHP integers | ||
| 14 | * | ||
| 15 | * @param mixed $value The value to convert. | ||
| 16 | * @param Driver $driver The driver instance to convert with. | ||
| 17 | * @return string|null | ||
| 18 | */ | ||
| 19 | public function toPHP($value, Driver $driver) | ||
| 27 | |||
| 28 | /** | ||
| 29 | * Marshalls request data into PHP strings. | ||
| 30 | * | ||
| 31 | * @param mixed $value The value to convert. | ||
| 32 | * @return mixed Converted value. | ||
| 33 | */ | ||
| 34 | public function marshal($value) | ||
| 42 | |||
| 43 | /** | ||
| 44 | * Convert string data into the database format. | ||
| 45 | * | ||
| 46 | * @param mixed $value The value to convert. | ||
| 47 | * @param Driver $driver The driver instance to convert with. | ||
| 48 | * @return string|null | ||
| 49 | */ | ||
| 50 | public function toDatabase($value, Driver $driver) | ||
| 58 | |||
| 59 | /** | ||
| 60 | * Get the correct PDO binding type for string data. | ||
| 61 | * | ||
| 62 | * @param mixed $value The value being bound. | ||
| 63 | * @param Driver $driver The driver. | ||
| 64 | * @return int | ||
| 65 | */ | ||
| 66 | public function toStatement($value, Driver $driver) | ||
| 74 | } | ||
| 75 |