Hi All, I am implementing the functionality to ski...
# help
s
Hi All, I am implementing the functionality to skip Computop Capture plugin based on custom flag, this is how my overidden plugin looks
Copy code
* @return \Spryker\Shared\Kernel\Transfer\TransferInterface|array
     */
    public function run(array $orderItems, SpySalesOrder $orderEntity, ReadOnlyArrayObject $data)
    {
        if(config()->isSkipflagenabled()) {
            return; // I need to return empty or an array
        }
        $orderEntity->getItems()->setData($orderItems);
        $orderTransfer = $this->getOrderTransfer($orderEntity);

        return $this
            ->getFacade()
            ->captureCommandHandle($orderItems, $orderTransfer);
    }
do I need to return empty or an array as mentioned in return type, if so what is the array to returned?
q
hi, it is on you what you wish to return. if you overriding something keep the convention from parent class. remember about SOLID