lib/DataObjects/Widget.php
Widget
has 55 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class Widget
{
private $_itemName;
File Widget.php
has 280 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
namespace PromisePay\DataObjects;
/**
* Class Widget
Method __construct
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function __construct($jsonData)
{
if (count($jsonData)) {
$this->_itemName = array_key_exists('item_name', $jsonData)?$jsonData['item_name']:'';
$this->_fullAmount = array_key_exists('full_amount', $jsonData)?$jsonData['full_amount']:'';