public function getEntityState($entity)
    {
        if (isset($this->_states[$entity])) {
            return $this->_states[$entity];
        }

        return AnDomain::STATE_CLEAN;
    }
public function getEntityState($entity)
    {
        if (isset($this->_states[$entity])) {
            return $this->_states[$entity];
        }

        return AnDomain::STATE_CLEAN;
    }
public function getEntityState ( $ entity ) { if ( isset ( $ this -> _states [ $ entity ] ) ) { return $ this -> _states [ $ entity ] ; } return AnDomain :: STATE_CLEAN ; }
Return an entity state.

@param AnDomainEntityAbstract $entity Domain entity

@return bool
Return an entity state .