Skip to content

Commit fc26207

Browse files
committed
install script
1 parent 1f2304e commit fc26207

File tree

6 files changed

+93
-0
lines changed

6 files changed

+93
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace wcf\data\wsdb\record\connection;
4+
5+
use wcf\data\DatabaseObject;
6+
7+
/**
8+
* @property-read int $connectionID
9+
* @property-read int $databaseID
10+
* @property-read int $recordID
11+
* @property-read int $referencedDatabaseID
12+
* @property-read int $referencedRecordID
13+
*/
14+
final class RecordConnection extends DatabaseObject
15+
{
16+
/**
17+
* @inheritDoc
18+
*/
19+
protected static $databaseTableName = 'wsdb_record_connection';
20+
21+
/**
22+
* @inheritDoc
23+
*/
24+
protected static $databaseTableIndexName = 'connectionID';
25+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace wcf\data\wsdb\record\connection;
4+
5+
use wcf\data\AbstractDatabaseObjectAction;
6+
7+
/**
8+
* @extends AbstractDatabaseObjectAction<RecordConnection, RecordConnectionEditor>
9+
*/
10+
final class RecordConnectionAction extends AbstractDatabaseObjectAction
11+
{
12+
/**
13+
* @inheritDoc
14+
*/
15+
public $className = RecordConnectionEditor::class;
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace wcf\data\wsdb\record\connection;
4+
5+
use wcf\data\DatabaseObjectEditor;
6+
7+
/**
8+
* @mixin RecordConnection
9+
* @extends DatabaseObjectEditor<RecordConnection>
10+
*/
11+
final class RecordConnectionEditor extends DatabaseObjectEditor
12+
{
13+
/**
14+
* @inheritDoc
15+
*/
16+
protected static $baseClass = RecordConnection::class;
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace wcf\data\wsdb\record\connection;
4+
5+
use wcf\data\DatabaseObjectList;
6+
7+
/**
8+
* @extends DatabaseObjectList<RecordConnection>
9+
*/
10+
final class RecordConnectionList extends DatabaseObjectList
11+
{
12+
/**
13+
* @inheritDoc
14+
*/
15+
public $className = RecordConnection::class;
16+
}

package.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@
2121
<excludedpackage version="6.3.0 Alpha 1">com.woltlab.wcf</excludedpackage>
2222
<excludedpackage version="6.3.0 Alpha 1">com.woltlab.wsdb</excludedpackage>
2323
</excludedpackages>
24+
<instructions type="install">
25+
<instruction type="file"/>
26+
<instruction type="database">acp/database/install_dev.hanashi.wsdb.connection.php</instruction>
27+
</instructions>
2428
</package>

phpstan.neon

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
includes:
2+
- ../WCF/phpstan-ambient.neon
3+
4+
parameters:
5+
level: 6
6+
phpVersion:
7+
min: 80102
8+
max: 80499
9+
paths:
10+
- files
11+
scanFiles:
12+
- ../WCF/constants.php
13+
scanDirectories:
14+
- ../WCF/wcfsetup/install/files
15+
- ../com.woltlab.wsdb/files

0 commit comments

Comments
 (0)