/** * {@inheritdoc} */ public function __get($field) { if ($field == 'type') { return 'directory'; } return parent::__get($field); }