| @@ -1,17 +1,42 @@ | ||
| 1 | 1 | <?php |
| 2 | - | |
| 3 | -declare(strict_types=1); | |
| 4 | - | |
| 2 | +/** | |
| 3 | + * AssignmentInformationFactory.php | |
| 4 | + * | |
| 5 | + * The AssignmentInformationFactory class file. | |
| 6 | + * | |
| 7 | + * PHP versions 5 | |
| 8 | + * | |
| 9 | + * @author Alexander Schneider <[email protected]> | |
| 10 | + * @copyright 2008-2017 Alexander Schneider | |
| 11 | + * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 | |
| 12 | + * @version SVN: $id$ | |
| 13 | + * @link http://wordpress.org/extend/plugins/user-access-manager/ | |
| 14 | + */ | |
| 5 | 15 | namespace UserAccessManager\UserGroup; |
| 6 | 16 | |
| 17 | +/** | |
| 18 | + * Class AssignmentInformationFactory | |
| 19 | + * | |
| 20 | + * @package UserAccessManager\UserGroup | |
| 21 | + */ | |
| 7 | 22 | class AssignmentInformationFactory |
| 8 | 23 | { |
| 24 | + /** | |
| 25 | + * Creates an AssignmentInformation object. | |
| 26 | + * | |
| 27 | + * @param null|string $type | |
| 28 | + * @param null|string $fromDate | |
| 29 | + * @param null|string $toDate | |
| 30 | + * @param array $recursiveMembership | |
| 31 | + * | |
| 32 | + * @return AssignmentInformation | |
| 33 | + */ | |
| 9 | 34 | public function createAssignmentInformation( |
| 10 | - ?string $type = null, | |
| 11 | - ?string $fromDate = null, | |
| 12 | - ?string $toDate = null, | |
| 35 | + $type = null, | |
| 36 | + $fromDate = null, | |
| 37 | + $toDate = null, | |
| 13 | 38 | array $recursiveMembership = [] |
| 14 | - ): AssignmentInformation { | |
| 39 | + ) { | |
| 15 | 40 | return new AssignmentInformation($type, $fromDate, $toDate, $recursiveMembership); |
| 16 | 41 | } |
| 17 | 42 | } |