for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPSC\PagSeguro\Requests\PreApprovals;
/**
* @author Luís Otávio Cobucci Oblonczyk <[email protected]>
*/
class ChargeType
{
* @var string
const AUTOMATIC = 'auto';
const MANUAL = 'manual';
* @param string $type
*
* @return boolean
public static function isValid($type)
return in_array($type, [static::AUTOMATIC, static::MANUAL]);
}