public function addMixin(Mixin $mixin) { $mixin->setObject($this); $this->mixins[$mixin->getName()] = $mixin; }