public function reverseTransform($value): ?array
    {
        if (null === $value) {
            return null;
        }

        if (!is_string($value)) {
            throw new TransformationFailedException('Expected a string.');
        }

        $parts = explode(':', $value);

        if (count($parts) < 3) {
            throw new TransformationFailedException('Policy string must contain at least 3 parts.');
        }

        return [
            'id' => $parts[0],
            'module' => $parts[1],
            'function' => $parts[2],
        ];
    }
public function reverseTransform($value): ?array
    {
        if (null === $value) {
            return null;
        }

        if (!is_string($value)) {
            throw new TransformationFailedException('Expected a string.');
        }

        $parts = explode(':', $value);

        if (count($parts) < 3) {
            throw new TransformationFailedException('Policy string must contain at least 3 parts.');
        }

        return [
            'id' => $parts[0],
            'module' => $parts[1],
            'function' => $parts[2],
        ];
    }
public function reverseTransform ( $ value ) : ? array { if ( null === $ value ) { return null ; } if ( ! is_string ( $ value ) ) { throw new TransformationFailedException ( 'Expected a string.' ) ; } $ parts = explode ( ':' , $ value ) ; if ( count ( $ parts ) < 3 ) { throw new TransformationFailedException ( 'Policy string must contain at least 3 parts.' ) ; } return [ 'id' => $ parts [ 0 ] , 'module' => $ parts [ 1 ] , 'function' => $ parts [ 2 ] , ] ; }
Transforms a Policy string into a domain specific Policy array.

@param string|null $value

@return array|null

@throws TransformationFailedException
Transforms a Policy string into a domain specific Policy array .