2023-03-18 17:32:21 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
namespace SPC\builder\macos\library;
|
|
|
|
|
|
|
|
|
|
use SPC\builder\BuilderBase;
|
|
|
|
|
use SPC\builder\LibraryBase;
|
|
|
|
|
use SPC\builder\macos\MacOSBuilder;
|
|
|
|
|
use SPC\builder\traits\UnixLibraryTrait;
|
2023-08-20 19:51:45 +08:00
|
|
|
use SPC\exception\FileSystemException;
|
|
|
|
|
use SPC\exception\WrongUsageException;
|
2023-03-18 17:32:21 +08:00
|
|
|
use SPC\store\Config;
|
|
|
|
|
|
|
|
|
|
abstract class MacOSLibraryBase extends LibraryBase
|
|
|
|
|
{
|
|
|
|
|
use UnixLibraryTrait;
|
|
|
|
|
|
|
|
|
|
protected array $headers;
|
|
|
|
|
|
|
|
|
|
public function __construct(protected MacOSBuilder $builder)
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getBuilder(): BuilderBase
|
|
|
|
|
{
|
|
|
|
|
return $this->builder;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-20 19:51:45 +08:00
|
|
|
* @throws WrongUsageException
|
|
|
|
|
* @throws FileSystemException
|
2023-03-18 17:32:21 +08:00
|
|
|
*/
|
|
|
|
|
public function getFrameworks(): array
|
|
|
|
|
{
|
|
|
|
|
return Config::getLib(static::NAME, 'frameworks', []);
|
|
|
|
|
}
|
|
|
|
|
}
|