Skip to content

PolicyDocument ​

php
final class Zairakai\LaravelDevTools\Update\PolicyDocument

The policy document of a project (the held and rejected packages): its content, its validation and its changes.

Source: src/Update/PolicyDocument.php

Methods ​

encodePolicy() ​

php
public static function encodePolicy(array $doc): string

A policy document as the file is written: two spaces, a final new line.

policyPackages() ​

php
public static function policyPackages(array $doc): array

The packages of a valid policy document.

Returns list<string>

validatePolicy() ​

php
public static function validatePolicy(array $doc): array

The problems of a policy document, as a list of sentences (empty when it is valid).

Returns list<string>

withoutEntries() ​

php
public static function withoutEntries(array $doc, array $names): array

A policy document without the entries of some packages.

Returns array<string, mixed>

Documentation of 5.5.0 , built from 92a7387 on 5.5.0 by pipeline #3086393151 on 2026-11-18.