Strata\Model\CustomPostType\LabelParser

Based on model configuration and the model class name, generates a list of Wordpress labels automatically.

    Synopsis

    class LabelParser {
    }

    Members

    private

    • $entity — mixed
    • $plural — string
    • $singular — string

    Methods

    public

    • __construct() — A label parser must be associated to a class that has the configurable trait.
    • parse() — Analyzes the configuration and the class name to generate both plural and singular human readable forms of this class name.
    • plural() — Returns the plural version of the label
    • singular() — Returns the singular version of the label