for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ByTIC\DocumentGenerator\Tests\Fixtures\Models\PdfLetters;
use ByTIC\DocumentGenerator\PdfLetters\Models\PdfLetters\PdfLettersTrait;
use Nip\Records\RecordManager;
use Nip\Records\Traits\AbstractTrait\RecordsTrait as AbstractRecordsTrait;
use Nip\Utility\Traits\SingletonTrait;
/**
* Class PdfLetter
* @package ByTIC\DocumentGenerator\Tests\Fixtures\Models\PdfLetters
*/
class PdfLetters extends RecordManager
{
use PdfLettersTrait;
use SingletonTrait;
* @inheritdoc
public function getPrimaryKey()
return 'id';
}
public function generateTable()
return 'pdf_letters';
* @param $type
* @return AbstractRecordsTrait
public function getParentManagerFromType($type)
$type
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
public function getParentManagerFromType(/** @scrutinizer ignore-unused */ $type)
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
// TODO: Implement getParentManagerFromType() method.
* @return string
protected function getCustomFieldsManagerClass()
// TODO: Implement getCustomFieldsManagerClass() method.
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.