src/Response/Card.php
public function setType($type)
    {
        if (!in_array($type, $this->validCardTypes)) {
            throw new \Exception('Invalid Card type supplied');
        }

        $this->type = $type;

        return $this;
    }
public function setType($type)
    {
        if (!in_array($type, $this->validCardTypes)) {
            throw new \Exception('Invalid Card type supplied');
        }

        $this->type = $type;

        return $this;
    }
@param string $type

@throws \Exception

@return $this