Skip to content

Commit 5cfad03

Browse files
Update doc blocks
1 parent 968a59c commit 5cfad03

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

setup/src/Magento/Setup/Model/ConfigOptionsList/DriverOptions.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
28
namespace Magento\Setup\Model\ConfigOptionsList;
39

410
use Magento\Framework\Config\ConfigOptionsListConstants;
511

12+
/**
13+
* MySql driver options
14+
*/
615
class DriverOptions
716
{
817
/**
18+
* Get driver options.
19+
*
920
* @params array $options
1021
* @return array
1122
*/
12-
public function getDriverOptions($options)
23+
public function getDriverOptions(array $options): array
1324
{
1425
$driverOptionKeys = [
1526
ConfigOptionsListConstants::KEY_MYSQL_SSL_KEY => ConfigOptionsListConstants::INPUT_KEY_DB_SSL_KEY,
@@ -27,11 +38,13 @@ public function getDriverOptions($options)
2738
}
2839

2940
/**
41+
* Check if provided option exists.
42+
*
3043
* @param array $options
3144
* @param string $driverOptionKey
3245
* @return bool
3346
*/
34-
private function optionExists($options, $driverOptionKey)
47+
private function optionExists(array $options, string $driverOptionKey): bool
3548
{
3649
return $options[$driverOptionKey] === false || !empty($options[$driverOptionKey]);
3750
}

0 commit comments

Comments
 (0)