public function __construct($type, $key = null, $nullable = null) { $this->type = $type; $this->key = $key; $this->nullable = null !== $nullable ? (bool) $nullable : true; }