public function createTrackedObject(ResourceInterface $resource)
    {
        $tracked = new TrackedObject();
        $tracked->setResource($resource);
        $tracked->setChecksum($resource->getChecksum());

        if(is_null($tracked->getID())){
            $tracked->setID(PathUtil::createPathID($resource->getResource()));
        }
        return $tracked;
    }
public function createTrackedObject(ResourceInterface $resource)
    {
        $tracked = new TrackedObject();
        $tracked->setResource($resource);
        $tracked->setChecksum($resource->getChecksum());

        if(is_null($tracked->getID())){
            $tracked->setID(PathUtil::createPathID($resource->getResource()));
        }
        return $tracked;
    }
public function createTrackedObject ( ResourceInterface $ resource ) { $ tracked = new TrackedObject ( ) ; $ tracked -> setResource ( $ resource ) ; $ tracked -> setChecksum ( $ resource -> getChecksum ( ) ) ; if ( is_null ( $ tracked -> getID ( ) ) ) { $ tracked -> setID ( PathUtil :: createPathID ( $ resource -> getResource ( ) ) ) ; } return $ tracked ; }
Create new TrackedObject

@param   ResourceInterface   $resource
@return  TrackedObject
Create new TrackedObject