-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3a94c3
commit 02a9a63
Showing
4 changed files
with
54 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
/** | ||
* Copyright (c) 2024 Dimitri BOUTEILLE (https://github.com/dimitriBouteille) | ||
* See LICENSE.txt for license details. | ||
* | ||
* Author: Dimitri BOUTEILLE <[email protected]> | ||
*/ | ||
|
||
namespace Dbout\WpOrm\Attributes; | ||
|
||
/** | ||
* @since 3.0.0 | ||
*/ | ||
#[\Attribute(\Attribute::TARGET_CLASS)] | ||
class MetaConfigAttribute | ||
{ | ||
/** | ||
* @param string $metaClass Meta className | ||
* @param string $foreignKey | ||
* @param string $columnKey Column contains the meta key | ||
* @param string $columnValue Column contains the meta value | ||
*/ | ||
public function __construct( | ||
public readonly string $metaClass, | ||
public readonly string $foreignKey, | ||
public readonly string $columnKey = 'meta_key', | ||
public readonly string $columnValue = 'meta_value', | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters