-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try cleaning PHPStan reports with stub files
- Loading branch information
1 parent
4ffc1b2
commit 644c089
Showing
10 changed files
with
194 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drupal\social_eda\Types; | ||
|
||
class Address { | ||
/** | ||
* @param callable $item | ||
* @param callable $label | ||
* | ||
* @return self | ||
*/ | ||
public static function fromFieldItem($item, string $label): self { | ||
// TODO: Implement fromFieldItem() method. | ||
} | ||
} | ||
} |
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 | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drupal\social_eda\Types; | ||
|
||
class DateTime { | ||
/** | ||
* @param callable $timestamp | ||
* | ||
* @return self | ||
*/ | ||
public static function fromTimestamp(callable $timestamp): self { | ||
// TODO: Implement fromTimestamp() method. | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function toString(): string { | ||
// TODO: Implement toString() method. | ||
} | ||
|
||
/** | ||
* @return \DateTimeImmutable | ||
*/ | ||
public function toImmutableDateTime(): \DateTimeImmutable { | ||
// TODO: Implement toImmutableDateTime() method. | ||
} | ||
} |
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,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drupal\social_eda\Types; | ||
|
||
/** | ||
* @template T | ||
*/ | ||
class Entity { | ||
/** | ||
* @param callable $entity | ||
* | ||
* @return self | ||
*/ | ||
public static function fromEntity($entity): self { | ||
// TODO: Implement fromEntity() method. | ||
} | ||
} |
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,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drupal\social_eda\Types; | ||
|
||
class Href { | ||
/** | ||
* @param callable $entity | ||
* | ||
* @return self | ||
*/ | ||
public static function fromEntity($entity): self { | ||
// TODO: Implement fromEntity() method. | ||
} | ||
} |
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,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drupal\social_eda\Types; | ||
|
||
/** | ||
* @template T | ||
*/ | ||
class User { | ||
/** | ||
* @param callable $entity | ||
* | ||
* @return self | ||
*/ | ||
public static function fromEntity($entity): self { | ||
// TODO: Implement fromEntity() method. | ||
} | ||
} |
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,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CloudEvents\V1; | ||
|
||
class CloudEvent { | ||
/** | ||
* CloudEvent constructor. | ||
* | ||
* @param callable $id | ||
* @param callable $source | ||
* @param callable $type | ||
* @param callable $data | ||
* @param callable $dataContentType | ||
* @param callable $dataSchema | ||
* @param callable $subject | ||
* @param callable $time | ||
*/ | ||
public function __construct( | ||
string $id, | ||
string $source, | ||
string $type, | ||
array $data, | ||
string $dataContentType, | ||
?string $dataSchema, | ||
?string $subject, | ||
\DateTimeImmutable $time | ||
) { | ||
// TODO: Implement __construct() method. | ||
} | ||
} |
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Drupal\social_eda_dispatcher; | ||
|
||
/** | ||
* @template T | ||
*/ | ||
class Dispatcher { | ||
/** | ||
* @param callable $topic | ||
* @param callable $event | ||
* | ||
* @return void | ||
*/ | ||
public function dispatch(string $topic, $event): void { | ||
// TODO: Implement dispatch() method. | ||
} | ||
} |