harbor run -t openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0250harbor download openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0250Task: Implement a PlainPHP-based Payum TokenFactory and supporting classes to generate security tokens and their URLs, covering all scenarios exercised by the tests.
What to implement (self-contained and actionable)
Create the following PHP classes under /app/ with appropriate namespaces and minimal mocks/stubs to satisfy the tests:
Implement the following behavior in Payum\Core\Bridge\PlainPhp\Security\TokenFactory:
Implement minimal Token API in Payum\Core\Model\Token:
Implement Identity class (simple data holder with id and class name)
Implement StorageInterface with methods: create(), update($model), identify($model)
Implement StorageRegistryInterface with method: getStorage($model)
Implement Symfony TokenFactory class to satisfy interface/subclass tests:
Ensure autoload compatibility (namespaces align with directory structure under /app/)
Acceptance criteria (mapping to tests)
Placement