• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tempestphp / tempest-framework / 14422676564

12 Apr 2025 07:23PM UTC coverage: 80.298% (-0.9%) from 81.217%
14422676564

Pull #1149

github

web-flow
Merge 72596e199 into 0c553d46c
Pull Request #1149: feat(storage): add storage component

137 of 333 new or added lines in 18 files covered. (41.14%)

11685 of 14552 relevant lines covered (80.3%)

104.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Tempest/Storage/src/Config/SFTPStorageConfig.php
1
<?php
2

3
namespace Tempest\Storage\Config;
4

5
use League\Flysystem\PhpseclibV3\SftpAdapter;
6
use League\Flysystem\PhpseclibV3\SftpConnectionProvider;
7

8
final class SFTPStorageConfig implements StorageConfig
9
{
NEW
10
    public function __construct(
×
11
        public string $host,
12
        public string $root,
13
        public string $username,
14
        public string $password,
15
        public ?string $privateKey = null,
16
        public ?string $passphrase = null,
17
        public int $port = 22,
18
        public bool $useAgent = false,
19
        public int $timeoutInSeconds = 10,
20
        public int $maxTries = 3,
21
        public ?string $hostFingerprint = null,
22
        public bool $readonly = false,
NEW
23
    ) {}
×
24

NEW
25
    public function createAdapter(): SftpAdapter
×
26
    {
NEW
27
        return new SftpAdapter(
×
NEW
28
            connectionProvider: new SftpConnectionProvider(
×
NEW
29
                host: $this->host,
×
NEW
30
                username: $this->username,
×
NEW
31
                password: $this->password,
×
NEW
32
                privateKey: $this->privateKey,
×
NEW
33
                passphrase: $this->passphrase,
×
NEW
34
                port: $this->port,
×
NEW
35
                useAgent: false,
×
NEW
36
                timeout: $this->timeoutInSeconds,
×
NEW
37
                maxTries: $this->maxTries,
×
NEW
38
                hostFingerprint: $this->hostFingerprint,
×
NEW
39
            ),
×
NEW
40
            root: $this->root,
×
NEW
41
        );
×
42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc