for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Starkerxp\LeadBundle\Manager;
use Starkerxp\LeadBundle\Entity\Lead;
use Starkerxp\StructureBundle\Entity\Entity;
use Starkerxp\StructureBundle\Manager\AbstractManager;
use Starkerxp\StructureBundle\Manager\Exception\DeleteObjectNotAllowedException;
class LeadManager extends AbstractManager
{
public function getSupport(Entity $object)
return $object instanceof Lead;
}
/**
* @param Entity $object
* @throws DeleteObjectNotAllowedException
*/
public function delete(Entity $object)
throw new DeleteObjectNotAllowedException();
public function toArray(Lead $object, $fields = [])
$array = [
"id" => $object->getId(),
"date_event" => $object->getDateEvent(),
"origin" => $object->getOrigin(),
"product" => $object->getProduct(),
"external_reference" => $object->getExternalReference(),
"pixel" => $object->getPixel(),
"ip_address" => $object->getIpAddress(),
"serialisation" => $object->getSerialisation(),
];
return $this->exportFields($array, $fields);
This check marks files that end in a newline character, i.e. an empy line.
This check marks files that end in a newline character, i.e. an empy line.