| 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)  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * Marshalls request data into PHP strings.  | 
            ||
| 29 | *  | 
            ||
| 30 | * @param mixed $value The value to convert.  | 
            ||
| 31 | * @return mixed Converted value.  | 
            ||
| 32 | */  | 
            ||
| 33 | public function marshal($value)  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * Convert string data into the database format.  | 
            ||
| 43 | *  | 
            ||
| 44 | * @param mixed $value The value to convert.  | 
            ||
| 45 | * @param Driver $driver The driver instance to convert with.  | 
            ||
| 46 | * @return string|null  | 
            ||
| 47 | */  | 
            ||
| 48 | public function toDatabase($value, Driver $driver)  | 
            ||
| 55 | |||
| 56 | /**  | 
            ||
| 57 | * Get the correct PDO binding type for string data.  | 
            ||
| 58 | *  | 
            ||
| 59 | * @param mixed $value The value being bound.  | 
            ||
| 60 | * @param Driver $driver The driver.  | 
            ||
| 61 | * @return int  | 
            ||
| 62 | */  | 
            ||
| 63 | public function toStatement($value, Driver $driver)  | 
            ||
| 70 | }  | 
            ||
| 71 |