public function __construct($attributes, array $options = []) { parent::__construct($attributes, $options); $this->environment = $options['collection']->environment; }