| 1 | <?php  | 
            ||
| 23 | class ArrayColumn implements Transformer  | 
            ||
| 24 | { | 
            ||
| 25 | private $key;  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * ArrayColumn constructor.  | 
            ||
| 29 | *  | 
            ||
| 30 | * @param mixed $key The lookup key.  | 
            ||
| 31 | */  | 
            ||
| 32 | 5 | public function __construct($key)  | 
            |
| 36 | |||
| 37 | /**  | 
            ||
| 38 | * Extract value from the input array based on the stored key.  | 
            ||
| 39 | *  | 
            ||
| 40 | * @param array|ArrayAccess $value The input value to transform.  | 
            ||
| 41 | * @return mixed The transformed result.  | 
            ||
| 42 | */  | 
            ||
| 43 | 5 | public function __invoke($value)  | 
            |
| 55 | }  | 
            ||
| 56 |