private function getEntitySetter($entity, $property)
    {
        $setter = 'set'.ucfirst($property);
        if (!method_exists($entity, $setter)) {
            throw new \LogicException("Entity has no setter for property `{$property}`.");
        }

        return $setter;
    }
private function getEntitySetter($entity, $property)
    {
        $setter = 'set'.ucfirst($property);
        if (!method_exists($entity, $setter)) {
            throw new \LogicException("Entity has no setter for property `{$property}`.");
        }

        return $setter;
    }
private function getEntitySetter ( $ entity , $ property ) { $ setter = 'set' . ucfirst ( $ property ) ; if ( ! method_exists ( $ entity , $ setter ) ) { throw new \ LogicException ( "Entity has no setter for property `{$property}`." ) ; } return $ setter ; }
Gets the correct setter name for an entity property.

@param mixed  $entity
@param string $property

@return string

@throws \LogicException if the entity has no setter for the requested property
Gets the correct setter name for an entity property .