<?php namespace Ctct\Components\Contacts; use Ctct\Components\Component; class CustomField extends Component { public $name; public $value; public static function create(array $props) { $custom_field = new CustomField(); $custom_field->name = parent::getValue($props, "name"); $custom_field->value = parent::getValue($props, "value"); return $custom_field; } } 