Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ObjectOriented/Classes/Abstraction/Parsing/SportSite2Parser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace ObjectOriented\Classes\Abstraction\Parsing;

// конкретная реализация парсера
class SportSite2Parser extends Parser
{
public function parse(): string
{
return "SportSiteParser: <html><head><title></title></head><body>...Парсинг спортивных сайтов...";
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

код не оптимальный, надо обсудить

}
}
12 changes: 12 additions & 0 deletions ObjectOriented/Classes/Abstraction/Parsing/SportSiteParser.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace ObjectOriented\Classes\Abstraction\Parsing;

// конкретная реализация парсера
class SportSiteParser extends Parser
{
public function parse(): string
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вот это вообще не нужно потому что ...

{
return "SportSite: <html><head><title></title></head><body>...Парсинг спортивных сайтов...";
}
}