src/Event/EntityEvent.php
public function setEntityClassName($name)
    {
        $trimmedName = trim($name, '\\');

        if (!class_exists($trimmedName)) {
            throw new RuntimeException(sprintf('The class "%s" does not exist.', $trimmedName));
        }

        $this->entityClassName = $trimmedName;

        return $this;
    }
public function setEntityClassName($name)
    {
        $trimmedName = trim($name, '\\');

        if (!class_exists($trimmedName)) {
            throw new RuntimeException(sprintf('The class "%s" does not exist.', $trimmedName));
        }

        $this->entityClassName = $trimmedName;

        return $this;
    }
public function setEntityClassName ( $ name ) { $ trimmedName = trim ( $ name , '\\' ) ; if ( ! class_exists ( $ trimmedName ) ) { throw new RuntimeException ( sprintf ( 'The class "%s" does not exist.' , $ trimmedName ) ) ; } $ this -> entityClassName = $ trimmedName ; return $ this ; }
Sets the FQCN of the entity that is used.

@param string $name The FQCN of the entity.
@return EntityEvent Returns the instance of this class so that chaining can be used.
@throws RuntimeException
Sets the FQCN of the entity that is used .