PayPal\Core\PPXmlFaultMessage::fillRelation PHP Méthode

fillRelation() private méthode

private fillRelation ( string $property, array $element )
$property string
$element array
    private function fillRelation($property, array $element)
    {
        if (!class_exists($type = PPUtils::propertyType($this, $property))) {
            trigger_error("Class {$type} not found.", E_USER_NOTICE);
            return;
            // just ignore
        }
        if (isset($element['num'])) {
            // array of objects
            $this->{$property}[$element['num']] = $item = new $type();
            $item->init($element['children'], false);
        } else {
            $this->{$property} = new $type();
            $this->{$property}->init($element["children"], false);
        }
    }
PPXmlFaultMessage