function __construct(AbstractEntity $entity, ArrayObject $attributes) { $this->entity = $entity; $this->attributes = $attributes; }