public function generateActionParamComments()
    {
        /** @var ActiveRecord $class */
        $class = $this->modelClass;
        $pks = $class::primaryKey();
        if (($table = $this->getTableSchema()) === false) {
            $params = [];
            foreach ($pks as $pk) {
                $params[] = '@param ' . (substr(strtolower($pk), -2) == 'id' ? 'integer' : 'string') . ' $' . $pk;
            }

            return $params;
        }
        if (count($pks) === 1) {
            return ['@param ' . $table->columns[$pks[0]]->phpType . ' $id'];
        } else {
            $params = [];
            foreach ($pks as $pk) {
                $params[] = '@param ' . $table->columns[$pk]->phpType . ' $' . $pk;
            }

            return $params;
        }
    }
public function generateActionParamComments()
    {
        /** @var ActiveRecord $class */
        $class = $this->modelClass;
        $pks = $class::primaryKey();
        if (($table = $this->getTableSchema()) === false) {
            $params = [];
            foreach ($pks as $pk) {
                $params[] = '@param ' . (substr(strtolower($pk), -2) == 'id' ? 'integer' : 'string') . ' $' . $pk;
            }

            return $params;
        }
        if (count($pks) === 1) {
            return ['@param ' . $table->columns[$pks[0]]->phpType . ' $id'];
        } else {
            $params = [];
            foreach ($pks as $pk) {
                $params[] = '@param ' . $table->columns[$pk]->phpType . ' $' . $pk;
            }

            return $params;
        }
    }
public function generateActionParamComments ( ) { /** @var ActiveRecord $class */ $ class = $ this -> modelClass ; $ pks = $ class :: primaryKey ( ) ; if ( ( $ table = $ this -> getTableSchema ( ) ) === false ) { $ params = [ ] ; foreach ( $ pks as $ pk ) { $ params [ ] = '@param ' . ( substr ( strtolower ( $ pk ) , - 2 ) == 'id' ? 'integer' : 'string' ) . ' $' . $ pk ; } return $ params ; } if ( count ( $ pks ) === 1 ) { return [ '@param ' . $ table -> columns [ $ pks [ 0 ] ] -> phpType . ' $id' ] ; } else { $ params = [ ] ; foreach ( $ pks as $ pk ) { $ params [ ] = '@param ' . $ table -> columns [ $ pk ] -> phpType . ' $' . $ pk ; } return $ params ; } }
Generates parameter tags for phpdoc
@return array parameter tags for phpdoc
Generates parameter tags for phpdoc