protected function extractBindingType($collection, $key) { if ($collection !== null) { return 'collection'; } if (strpos($key, '$') === 0) { return 'variable'; } return 'field'; }