public function addProperty(Property $property) { $this->properties->{$property->getId()} = $property; }