for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sco\Bankcard;
use Sco\Bankcard\Contracts\Info as InfoContract;
use Sco\Bankcard\Traits\HasAttributes;
class Info implements InfoContract
{
use HasAttributes;
public function __construct(array $attributes)
$this->attributes = $attributes;
}
public function getBankInfo()
return $this->getAttributes();
public function getBankCode()
return $this->getAttribute('bankCode');
public function getBankName()
return $this->getAttribute('bankName');
public function getBankIcon()
return $this->getAttribute('bankIcon');
public function getCardType()
return $this->getAttribute('cardType');
public function getCardTypeName()
return $this->getAttribute('cardTypeName');