public function saveStrategy($strategy = null)
{
if ($strategy === null) {
return $this->_saveStrategy;
}
if (!in_array($strategy, [self::SAVE_APPEND, self::SAVE_REPLACE])) {
$msg = sprintf('Invalid save strategy "%s"', $strategy);
throw new InvalidArgumentException($msg);
}
return $this->_saveStrategy = $strategy;
}