0
design-patterns/facade/php Ошибка в class YouTube нетpublic function __construct(string $apiKey)
/**
* Подсистема API YouTube.
*/
class YouTube
{
/**
* @var string
*/
private $apiKey;
public function __construct(string $apiKey)
{
$this->apiKey = $apiKey;
}
public function fetchVideo(): string
{
echo $this->apiKey;
}
public function saveAs(string $path): void
{ /* ... */
}
// ...дополнительные методы и классы...
}
Customer support service by UserEcho