Skip to content

Instantly share code, notes, and snippets.

@settermjd
Created November 24, 2013 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save settermjd/7629594 to your computer and use it in GitHub Desktop.
Save settermjd/7629594 to your computer and use it in GitHub Desktop.
namespace MaltBlue\Model;
use Zend\InputFilter\Factory as InputFactory;
use Zend\InputFilter\InputFilter;
use Zend\InputFilter\InputFilterAwareInterface;
use Zend\InputFilter\InputFilterInterface;
use MaltBlue\Filter\Float;
class CountryDebt implements InputFilterAwareInterface
{
public $countryId;
public $debtLevel;
public $debtId;
protected $inputFilter;
// Add content to these methods:
public function setInputFilter(InputFilterInterface $inputFilter)
{
throw new \Exception("Not used");
}
public function exchangeArray($data)
{
$this->countryId = (isset($data['countryId'])) ? $data['countryId'] : null;
$this->debtId = (isset($data['debtId'])) ? $data['debtId'] : null;
$this->debtLevel = (isset($data['debtLevel'])) ? $data['debtLevel'] : null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment