Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirtzbruch committed Nov 13, 2023
1 parent 4f2e949 commit b3b2c42
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Exceptions/SourceUnavailableException.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?php

/**
* Copyright © Fastbolt Schraubengroßhandels GmbH.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Fastbolt\EntityImporter\Exceptions;

use Exception;

class SourceUnavailableException extends Exception
{

}
8 changes: 8 additions & 0 deletions src/Types/ImportSourceDefinition/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,19 @@ public function getArchivingStrategy(): ArchivingStrategy
return new VoidArchivingStratetegy();
}

/**
* @return bool
*/
public function throwOnSourceUnavailable(): bool

Check warning on line 86 in src/Types/ImportSourceDefinition/Api.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Api.php#L86

Added line #L86 was not covered by tests
{
return $this->throwOnSourceUnavailable;

Check warning on line 88 in src/Types/ImportSourceDefinition/Api.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Api.php#L88

Added line #L88 was not covered by tests
}

/**
* @param bool $throwOnSourceUnavailable
*
* @return void
*/
public function setThrowOnSourceUnavailable(bool $throwOnSourceUnavailable): void

Check warning on line 96 in src/Types/ImportSourceDefinition/Api.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Api.php#L96

Added line #L96 was not covered by tests
{
$this->throwOnSourceUnavailable = $throwOnSourceUnavailable;
Expand Down
8 changes: 8 additions & 0 deletions src/Types/ImportSourceDefinition/Csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,19 @@ public function getArchivingStrategy(): ArchivingStrategy
return $this->archivingStrategy;
}

/**
* @return bool
*/
public function throwOnSourceUnavailable(): bool

Check warning on line 141 in src/Types/ImportSourceDefinition/Csv.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Csv.php#L141

Added line #L141 was not covered by tests
{
return $this->throwOnSourceUnavailable;

Check warning on line 143 in src/Types/ImportSourceDefinition/Csv.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Csv.php#L143

Added line #L143 was not covered by tests
}

/**
* @param bool $throwOnSourceUnavailable
*
* @return void
*/
public function setThrowOnSourceUnavailable(bool $throwOnSourceUnavailable): void

Check warning on line 151 in src/Types/ImportSourceDefinition/Csv.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Csv.php#L151

Added line #L151 was not covered by tests
{
$this->throwOnSourceUnavailable = $throwOnSourceUnavailable;
Expand Down
8 changes: 8 additions & 0 deletions src/Types/ImportSourceDefinition/Xlsx.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,19 @@ public function getArchivingStrategy(): ArchivingStrategy
return $this->archivingStrategy;
}

/**
* @return bool
*/
public function throwOnSourceUnavailable(): bool

Check warning on line 93 in src/Types/ImportSourceDefinition/Xlsx.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Xlsx.php#L93

Added line #L93 was not covered by tests
{
return $this->throwOnSourceUnavailable;

Check warning on line 95 in src/Types/ImportSourceDefinition/Xlsx.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Xlsx.php#L95

Added line #L95 was not covered by tests
}

/**
* @param bool $throwOnSourceUnavailable
*
* @return void
*/
public function setThrowOnSourceUnavailable(bool $throwOnSourceUnavailable): void

Check warning on line 103 in src/Types/ImportSourceDefinition/Xlsx.php

View check run for this annotation

Codecov / codecov/patch

src/Types/ImportSourceDefinition/Xlsx.php#L103

Added line #L103 was not covered by tests
{
$this->throwOnSourceUnavailable = $throwOnSourceUnavailable;
Expand Down

0 comments on commit b3b2c42

Please sign in to comment.