Domain/BaseDomain.php
protected function getSuccessStatus($type, $object)
    {
        if (Domain::TYPE_CREATE === $type) {
            return ResourceStatutes::CREATED;
        }
        if (Domain::TYPE_UPDATE === $type) {
            return ResourceStatutes::UPDATED;
        }
        if (Domain::TYPE_UNDELETE === $type) {
            return ResourceStatutes::UNDELETED;
        }

        return null === DomainUtil::getIdentifier($this->om, $object)
            ? ResourceStatutes::CREATED
            : ResourceStatutes::UPDATED;
    }
protected function getSuccessStatus($type, $object)
    {
        if (Domain::TYPE_CREATE === $type) {
            return ResourceStatutes::CREATED;
        }
        if (Domain::TYPE_UPDATE === $type) {
            return ResourceStatutes::UPDATED;
        }
        if (Domain::TYPE_UNDELETE === $type) {
            return ResourceStatutes::UNDELETED;
        }

        return null === DomainUtil::getIdentifier($this->om, $object)
            ? ResourceStatutes::CREATED
            : ResourceStatutes::UPDATED;
    }
protected function getSuccessStatus ( $ type , $ object ) { if ( Domain :: TYPE_CREATE === $ type ) { return ResourceStatutes :: CREATED ; } if ( Domain :: TYPE_UPDATE === $ type ) { return ResourceStatutes :: UPDATED ; } if ( Domain :: TYPE_UNDELETE === $ type ) { return ResourceStatutes :: UNDELETED ; } return null === DomainUtil :: getIdentifier ( $ this -> om , $ object ) ? ResourceStatutes :: CREATED : ResourceStatutes :: UPDATED ; }
Get the success status.

@param int    $type   The type of persist
@param object $object The resource instance

@return string
Get the success status .