/** * Creating a CreditNote * * @param Customer $customer * * @return CreditNote */ public static function create(Customer $customer, $description = '') { $creditNote = new CreditNote(); return $creditNote->setCustomer($customer)->setDescription(trim($description))->save(); }