You would need to install https://github.com/ramsey/uuid to make it work. Depending on the use case it could also make sense to implement those as traits.
<?php
class ArticlePage extends UuidPage
{
}
<?php
class BlogPage extends UuidParentPage
{
}