protected function buildTrashItem(Location $location)
    {
        return new TrashItem(
            array(
                'contentInfo' => $location->contentInfo,
                'id' => $location->id,
                'priority' => $location->priority,
                'hidden' => $location->hidden,
                'invisible' => $location->invisible,
                'remoteId' => $location->remoteId,
                'parentLocationId' => $location->parentLocationId,
                'pathString' => $location->pathString,
                'depth' => (int)$location->depth,
                'sortField' => $location->sortField,
                'sortOrder' => $location->sortOrder,
            )
        );
    }
protected function buildTrashItem(Location $location)
    {
        return new TrashItem(
            array(
                'contentInfo' => $location->contentInfo,
                'id' => $location->id,
                'priority' => $location->priority,
                'hidden' => $location->hidden,
                'invisible' => $location->invisible,
                'remoteId' => $location->remoteId,
                'parentLocationId' => $location->parentLocationId,
                'pathString' => $location->pathString,
                'depth' => (int)$location->depth,
                'sortField' => $location->sortField,
                'sortOrder' => $location->sortOrder,
            )
        );
    }
protected function buildTrashItem ( Location $ location ) { return new TrashItem ( array ( 'contentInfo' => $ location -> contentInfo , 'id' => $ location -> id , 'priority' => $ location -> priority , 'hidden' => $ location -> hidden , 'invisible' => $ location -> invisible , 'remoteId' => $ location -> remoteId , 'parentLocationId' => $ location -> parentLocationId , 'pathString' => $ location -> pathString , 'depth' => ( int ) $ location -> depth , 'sortField' => $ location -> sortField , 'sortOrder' => $ location -> sortOrder , ) ) ; }
Converts the Location value object to TrashItem value object.

@param \eZ\Publish\API\Repository\Values\Content\Location $location

@return \eZ\Publish\API\Repository\Values\Content\TrashItem
Converts the Location value object to TrashItem value object .