for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/**
* Created by Vitaly Iegorov <[email protected]>.
* on 17.08.16 at 09:19
*/
namespace samsonframework\container\collection\configurator;
use samsonframework\container\metadata\ClassMetadata;
* Class CollectionConfiguratorTrait
*
* @author Vitaly Iegorov <[email protected]>
trait CollectionConfiguratorTrait
{
* Get collection configurator marker.
* @return string Collection configurator key
public static function getMarker()
// Get collection configurator key as its lowered class name
return strtolower(substr(get_called_class(), strrpos(get_called_class(), '\\') + 1));
}
* Generic collection configurator data resolver.
* @param mixed $data Data for resolving
public function resolve(array $data, ClassMetadata $classMetadata)
$data
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$classMetadata
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.