protected function makeCharge(array $attributes)
    {
        $resource = new BasicResource($attributes);

        $resource->setType('charge');

        $resource->setExists(in_array($resource->status, [1,2]));

        return $resource;
    }
protected function makeCharge(array $attributes)
    {
        $resource = new BasicResource($attributes);

        $resource->setType('charge');

        $resource->setExists(in_array($resource->status, [1,2]));

        return $resource;
    }
protected function makeCharge ( array $ attributes ) { $ resource = new BasicResource ( $ attributes ) ; $ resource -> setType ( 'charge' ) ; $ resource -> setExists ( in_array ( $ resource -> status , [ 1 , 2 ] ) ) ; return $ resource ; }
Makes a Charge

@param array $attributes
@throws \Exception
@return BasicResource
Makes a Charge