Ctct\ConstantContact::getArgumentId
Get the id of object, or attempt to convert the argument to an int
Signature
private function getArgumentId(mixed
$item,
string
$class_name )
Parameters
$item
— mixed- - object or a numeric value
$class_name
— string- - class name to test the given object against
Returns
- int
Errors/Exceptions
-
IllegalArgumentException
- - if the item is not an instance of the class name given, or cannot be