public function getUser(array $attributes = array()) { $subtype = isset($attributes['subtype']) ? $attributes['subtype'] : 'foo_user'; return $this->entityTable->setup(null, 'user', $subtype, $attributes); }