• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / wordpress-seo / 6987097851

25 Nov 2023 04:49AM UTC coverage: 49.206% (-0.1%) from 49.302%
6987097851

push

github

web-flow
Merge pull request #20878 from Yoast/JRF/ghactions-minor-tweak

GH Actions: update a few links in inline comments

15305 of 31104 relevant lines covered (49.21%)

4.03 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/exceptions/forbidden-property-mutation-exception.php
1
<?php
2

3
namespace Yoast\WP\SEO\Exceptions;
4

5
use RuntimeException;
6

7
/**
8
 * Exception for attempting a mutation on properties that are made readonly through magic getters and setters.
9
 */
10
class Forbidden_Property_Mutation_Exception extends RuntimeException {
11

12
        /**
13
         * Creates a Forbidden_Property_Mutation_Exception exception when an attempt is made
14
         * to assign a value to an immutable property.
15
         *
16
         * @param string $property_name The name of the immutable property.
17
         *
18
         * @return Forbidden_Property_Mutation_Exception The exception.
19
         */
20
        public static function cannot_set_because_property_is_immutable( $property_name ) {
×
21
                return new self( \sprintf( 'Setting property $%s is not supported.', $property_name ) );
×
22
        }
23

24
        /**
25
         * Creates a Forbidden_Property_Mutation_Exception exception when an attempt is made to unset an immutable property.
26
         *
27
         * @param string $property_name The name of the immutable property.
28
         *
29
         * @return Forbidden_Property_Mutation_Exception The exception.
30
         */
31
        public static function cannot_unset_because_property_is_immutable( $property_name ) {
×
32
                return new self( \sprintf( 'Unsetting property $%s is not supported.', $property_name ) );
×
33
        }
34
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc