for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © 2016 netz98 new media GmbH. All rights reserved.
* See COPYING.txt for license details.
*/
namespace N98\Magento\Command\Developer\Console\Structure;
class DDLTable
{
* @var string
private $name;
private $comment;
* @var array|DDLTableColumn[]
private $columnDefinitions;
* DDLTable constructor.
* @param string $tableName
$tableName
string|null
This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.
@param
It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.
* @param string $tableComment
$tableComment
* @param DDLTableColumn[] $columnDefinitions
public function __construct($tableName = null, $tableComment = null, array $columnDefinitions = [])
$this->name = $tableName;
$this->comment = $tableComment;
$this->columnDefinitions = $columnDefinitions;
}
* @return string
public function getName()
return $this->name;
* @param string $name
public function setName($name)
$this->name = $name;
public function getComment()
return $this->comment;
* @param string $comment
public function setComment($comment)
$this->comment = $comment;
* @return array|DDLTableColumn[]
public function getColumns()
return $this->columnDefinitions;
* @param array|DDLTableColumn[] $columnDefinitions
public function setColumns($columnDefinitions)
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.