public function checkIsEntity($object)
    {
        if (!$object instanceof $this->entityName) {
            throw InvalidArgumentException::invalidEntityType(
                $this->getEntityName(),
                $object
            );
        }
    }
public function checkIsEntity($object)
    {
        if (!$object instanceof $this->entityName) {
            throw InvalidArgumentException::invalidEntityType(
                $this->getEntityName(),
                $object
            );
        }
    }
public function checkIsEntity ( $ object ) { if ( ! $ object instanceof $ this -> entityName ) { throw InvalidArgumentException :: invalidEntityType ( $ this -> getEntityName ( ) , $ object ) ; } }
Checks the given entity is an instance of the entity this mapper works with.

@param  mixed $object

@return void

@throws InvalidArgumentException If $object is not an entity.
Checks the given entity is an instance of the entity this mapper works with .