News Context DTO represents a context where news items can be associated with.
isChildOf(NewsContext $parent_context)
Check if this context is a child of another context.
setObjType(string $obj_type)
normalize()
Transform this object into array representation and keep only properties which are not default values...
setParentRefId(?int $parent_ref_id)
isRoot()
Check if this context is at the root level.
__construct(private readonly int $ref_id, private ?int $obj_id=null, private ?string $obj_type=null, private ?int $parent_ref_id=null, private int $level=0,)
isParentOf(NewsContext $child_context)
Check if this context is a parent of another context.
static denormalize(array $raw)
Create new object from reduced array representation.