You are here

protected function Mollie_API_Resource_Base::getResourceName in Commerce Mollie 7

Return value

string

3 calls to Mollie_API_Resource_Base::getResourceName()
Mollie_API_Resource_Base::all in Mollie/API/Resource/Base.php
Retrieve all objects of a certain resource.
Mollie_API_Resource_Base::create in Mollie/API/Resource/Base.php
Create a resource with the remote API.
Mollie_API_Resource_Base::get in Mollie/API/Resource/Base.php
Retrieve information on a single resource from Mollie.
1 method overrides Mollie_API_Resource_Base::getResourceName()
Mollie_API_Resource_Payments_Refunds::getResourceName in Mollie/API/Resource/Payments/Refunds.php

File

Mollie/API/Resource/Base.php, line 60

Class

Mollie_API_Resource_Base
Copyright (c) 2013, Mollie B.V. All rights reserved.

Code

protected function getResourceName() {
  $class_parts = explode("_", get_class($this));
  return mb_strtolower(end($class_parts));
}