-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
317 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
namespace Badraxas\Adstxt\Lines; | ||
|
||
use Badraxas\Adstxt\Interfaces\AdsTxtLineInterface; | ||
|
||
abstract class AbstractAdsTxtLine implements AdsTxtLineInterface | ||
{ | ||
protected string $rawValue = ''; | ||
protected array $notice = []; | ||
protected array $warning = []; | ||
protected array $error = []; | ||
|
||
public function getWarning() | ||
{ | ||
return $this->warning; | ||
} | ||
|
||
public function addWarning(string $warning) | ||
{ | ||
$this->warning[] = $warning; | ||
} | ||
|
||
public function getNotice() | ||
{ | ||
return $this->notice; | ||
} | ||
|
||
public function addNotice(string $notice) | ||
{ | ||
$this->notice[] = $notice; | ||
} | ||
|
||
public function getError() | ||
{ | ||
return $this->error; | ||
} | ||
|
||
public function addError(string $error) | ||
{ | ||
$this->error[] = $error; | ||
} | ||
|
||
public function setRawValue(string $rawValue) | ||
{ | ||
$this->rawValue = $rawValue; | ||
} | ||
|
||
public function getRawValue(): string | ||
{ | ||
return $this->rawValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.