for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PhpMob package.
*
* (c) Ishmael Doss <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PhpMob\Omise\Hydrator;
use PhpMob\Omise\Facade;
/**
* @author Ishmael Doss <[email protected]>
class FacadeHydration extends Hydration
{
* {@inheritdoc}
public static function getDomainClass($objectName)
if ('error' === $objectName) {
return parent::getDomainClass($objectName);
}
return "PhpMob\\Omise\\Facade\\".ucfirst($objectName === 'list' ? 'Pagination' : $objectName);
public static function getDomainAssertionClass()
return Facade::class;