public function getAttributes($resource) { // this method should not be called throw new LogicException(); }