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